Extjs grid带分页的查询
2010-12-28 18:21
337 查看
1、先按条件查询数据,再点下一页保留住查询条件,解决方案是将查询参数放入到store.baseParam中
Js代码
store: new Ext.data.JsonStore({
storeId: 'in_grid_store',
pageSize: 20,
totalProperty: 'totalCount',
remoteSort: true,
url: 'incoming/list.do',
root: 'incomings',
listeners :{
beforeload :{
fn : function(thiz,options){
Ext.apply(thiz.baseParams, Ext.getCmp('in-query-form').form.getValues());
}
}
},
fields: ['id', 'batch', 'customer', {name:'pigCount', type: 'int'}, 'createDate','status']
}),
function beforeload() 即将Form表单中的参数放入store.baseParam中
Js代码
store: new Ext.data.JsonStore({
storeId: 'in_grid_store',
pageSize: 20,
totalProperty: 'totalCount',
remoteSort: true,
url: 'incoming/list.do',
root: 'incomings',
listeners :{
beforeload :{
fn : function(thiz,options){
Ext.apply(thiz.baseParams, Ext.getCmp('in-query-form').form.getValues());
}
}
},
fields: ['id', 'batch', 'customer', {name:'pigCount', type: 'int'}, 'createDate','status']
}),
store: new Ext.data.JsonStore({ storeId: 'in_grid_store', pageSize: 20, totalProperty: 'totalCount', remoteSort: true, url: 'incoming/list.do', root: 'incomings', listeners :{ beforeload :{ fn : function(thiz,options){ Ext.apply(thiz.baseParams, Ext.getCmp('in-query-form').form.getValues()); } } }, fields: ['id', 'batch', 'customer', {name:'pigCount', type: 'int'}, 'createDate','status'] }),
function beforeload() 即将Form表单中的参数放入store.baseParam中
相关文章推荐
- ExtJS grid 带参数查询分页 store 传额外参数解决办法
- java程序员菜鸟进阶(十一)Extjs4常用功能(三)——列表grid的使用(带综合查询,分页)
- ExtJS 4 grid 带参数 查询 分页 store beforeload 解决办法
- ExtJS 4 grid 带参数 查询 分页 store beforeload 解决办法
- ExtJs Grid分页时序号自增的实现,以及查询以后的序号的处理
- 【ExtJs】与后台数据库交互的带分页表格组件grid的查询
- ExtJS 4 grid 带参数 查询 分页 store beforeload 解决办法
- Extjs6 grid带参数分页查询 store beforeload
- ExtJS 4 grid 带参数 查询 分页 store beforeload 解决办法
- ExtJS 4 grid 带参数 查询 分页 store beforeload 解决办法
- ExtJs+WCF+LINQ实现分页Grid
- Extjs 项目中按条件查询,分页显示后,点击下一页,查询条件消失
- Extjs Grid当中Toolbar上面按时间段查询2
- ExtJS实现完美Grid(4)--增强的查询
- ExtJS入门教程06,grid分页的实现
- ExtJs Grid分页时序号自增的实现
- ExtJs 4 Grid filter in asp.net mvc action表格 查询与过滤的最佳解析解决方案
- ExtJS中grid的JsonStore、Ext.PagingToolbar带条件查询问题
- extjs 按条件查询出的数据在grid上不显示
- [ExtNet]Grid怎么实现服务器端分页、排序、查询?-MS SQL存储过程分页