[color=darkred][/color]下面红色显示的部分是一个查询框,但是没有效果,有什么问题?
他是更具那个属性查的,我要指定按照某一属性查询该怎么做?
var grid_daily_hq = new Ext.grid.GridPanel({
autoScroll:true,
autoShow:true,
border: false,
store: store_daily_hq,
stripeRows:true,
cm:cm,
sm: new Ext.grid.RowSelectionModel({singleSelect:true}),
pageSize: pagesizes,
autoExpandColumn:'name',
frame:true,
[color=red]tbar: ['合同查询: ',' ',new Ext.app.SearchField({
store: store_daily_hq,
width:250
})],[/color] bbar : pagingBar_daily_hq,
view: new Ext.grid.GroupingView({
forceFit:true,
groupTextTpl: '{text} ({[values.rs.length]} {["条"]})'
}),
iconCls:'icon-grid'
});
分页不了可能是
Ext.app.SearchField组件问题。
var o = {start: 0}; 修改他的属性 var o = {start: 0,limit:20};
new Ext.app.SearchField({
store: store_daily_hq,
paramName: '',//搜索字段
width:250
})
后台进入了吗?
那就是你后台没有根据 传入的paramName值进行数据查询
如果 paramName 值为aa 后台通过
request.getParameter("aa");//可以获取当前输入的值
这个看你怎么写了。
如果查询的字段也要从前台获取。
你设置store_daily_hq.baseParams 值传递到后台就行了。
那肯定是你没有使用 start limit 进行分页查询照成的。导致查询所有数据