Hi I am using a store with the limit of 10 records
HTML Code:
var store = Ext.create('Ext.data.JsonStore', {
model: 'mdbunit',
id:'store',
pageSize:10,
proxy: {
type: 'ajax',
searchall: true,
url: 'php/viewbunit.php',
reader: {
type: 'json'
}
},
listeners : {
load : function(store) {
if(store.getCount()>0)
{
Ext.getCmp('bunit').enableBtns();
}
else{
Ext.getCmp('bunit').disableBtns();
}
}
}
});
store.load({
params:{
start:0,
limit: 10
}
});
and paging toolbar
HTML Code:
id:'gpanelBunit',
dockedItems: [{
xtype: 'pagingtoolbar',
store: store, // same store GridPanel is using
dock: 'bottom',
displayInfo: true,
}],
Still Store loads all the records and if i click paging toolbar next button same records being loaded to the page 2
Thanks