I'm struggling for days now, but with no success. I got no paging through my grid, though the pagingbar shows amount and count of pages right.Here are some code snippets:
model:
Ext.define('TBS', {
extend: 'Ext.data.Model',proxy: {
type: 'direct',
api: {
create: QueryDatabase.createRecord,
read: QueryDatabase.getResults,
update: QueryDatabase.updateRecords,
destroy: QueryDatabase.destroyRecord
},
simpleSortMode: true
}...
store:
var store = Ext.create('Ext.data.Store', {
model: 'TBS',
autoLoad: true,
autoDestroy: true,
pageSize: 20,
remoteSort: false,
sortOnLoad: true,
sorters: { property: 'StartDate', direction : 'DESC' }...
and the grid:
var grid = Ext.create('Ext.grid.Panel', {...
dockedItems: [{
xtype: 'pagingtoolbar',
dock: 'bottom',
store: store,
pageSize: 20,
displayInfo: true,
displayMsg: 'Total: {2}',
items: ['-',{
xtype: 'button',
iconCls: 'clean',
text: 'Clear All Filter',
handler: function () {
//console.log(Ext.encode(grid.filters.getFilterData()));
grid.filters.clearFilters();
store.clearFilter();
}
}]
}]
I'm using ExtJs 4.0.7
Any hints are very appreciated.
Thx.