1、自定义PagingToolbar对象
this._pgt=new Ext.PagingToolbar({
pageSize : 15 ,store : this ._store,
displayInfo : true ,});
displayMsg :'第{0} 到 {1} 条数据 共{2}条'
2、添加到Gird中
bbar: this._pgt
3、给PagingToolbar对象添加beforechange事件
this._pgt.on("beforechange",this.onBeforechange,this);//在PagingToolbar页面更改前的事件上注册监听器
4、实现添加参数的方法
onBeforechange : function(_p, _o) {if (this.roleId != '') {
Ext.apply(_o, {
id : this.roleId
});//增加自定义参数
}
return true;
},