私は JsonStore を持っています:
var store = new Ext.data.JsonStore({
root: 'Data.items',
remoteSort: false,
fields: ['ClockTime', 'EmpId'],
proxy: new Ext.data.HttpProxy({
url: AppRootPath + 'Something/GetSomething',
method: 'POST'
})//proxy
});//new Ext.data.JsonStore
次に、このストアで次のように Load を呼び出します。
store.load({params:{start: 0, limit: 25}});
このデータを表示するグリッドがあります。
var grid = new Ext.grid.GridPanel({
store: store,
title:'Employees',
stateful: true,
id: 'grid',
stripeRows: true,
stateId: 'excp_list',
bbar: new Ext.PagingToolbar({
store: store,
displayInfo: true,
prependButtons: true,
emptyMsg: "No records to display",
pageSize: 25
}),
viewConfig: {
forceFit: true
},
columns: [
{header: "Emp Id", width: 40, dataIndex: 'EmpId', sortable: true},
{header: "Clock Time", width: 40, dataIndex: 'ClockTime', sortable: true}
]
});
これにより、1 ページあたり 25 レコード/行しか表示されないことが予想されました。ただし、このページには合計 160 のレコードがある 1 ページしか表示されません。ここで明らかな何かが欠けていますか?