I am trying to limit pageSize to store 1. I have 10 elements in the grid, and while the search engine correctly shows 1 out of 10, 2 out of 10, etc., the grid still displays all 10 elements. I also tried returning the "total" value to 1 in json, but this still doesn't work. Any ideas?
The example in the documentation is not very useful as it shows the source code, but the real-time preview is empty.
var photos = new Ext.data.Store({ model: 'Photos', autoLoad: true, pageSize: 1 }); var photosGrid = Ext.create('Ext.grid.Panel', { id: 'PhotoGrid', store: photos, columns: [ { text: "Filename", width: 200, dataIndex: 'filename' } ], dockedItems: [{ xtype: 'pagingtoolbar', store: photos, dock: 'bottom', displayInfo: true }], region: 'center', border: 0, overCls: 'row-pointer' });
source share