var itemsPerPage = 20 ;
var store =new Ext.data.Store({
pageSize: itemsPerPage,fields : [
'yourfield1',
'yourfield2',
proxy : {
type : 'ajax',
url : '<%=rootPath%>' + '/youraction.action',
reader : { type : 'json',root : 'beans' ,totalProperty: 'totalProperty'}
} ,
autoLoad : false,
timeout: 900000,
});
store.load({
params : {
start:0 ,
limit: itemsPerPage
}
});
store.on('beforeload',function(){
Ext.apply( store.proxy.extraParams, { searchUserName : Ext.getCmp("searchUserNameId").getValue() });
});