我有一个 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}
]
});
我预计这只会显示每页 25 条记录/行。但是它只显示一页,该页共有 160 条记录。我在这里遗漏了一些明显的东西吗?