从我在互联网上读到的关于DataGrid分页的内容来看,我仍然可以让它工作。我有一个这样的DataGrid:
var grid = new DataGrid({
store: dataStore = new ObjectStore({objectStore: jsonrest_store}),
structure: [
{name: 'aaa', field: 'aaa', 'width': initialCol1},
{name: 'bbb', field: 'bbb', 'width': initialCol2},
{name: 'ccc', field: 'ccc', 'width': initialCol3},
{name: 'ddd', field: 'ddd', 'width': initialCol4}
],
rowsPerPage: 10,
autoHeight: 8,
keepRows: 100
}, "id_of_container");
grid.startup(); 我尝试了rowsPerPage和autoheight(number/off)的不同组合,但无论何时向下滚动,都没有调用,甚至在获取ObjectStore时也没有调用。有人知道问题出在哪里吗?
发布于 2014-05-26 21:33:43
试着在你的网格声明中给出这个
filter: {
isServerSide: true,
}//应自动触发请求
https://stackoverflow.com/questions/19498246
复制相似问题