dojodatagrid+;JsonRest&x2B;标页码
从我在互联网上读到的关于dojodatagrid+;JsonRest&x2B;标页码,dojo,dojox.grid.datagrid,dojox.grid,Dojo,Dojox.grid.datagrid,Dojox.grid,从我在互联网上读到的关于DataGridpagination的内容来看,我仍然可以让它工作。我有一个像这样的DataGrid: var grid = new DataGrid({ store: dataStore = new ObjectStore({objectStore: jsonrest_store}), structure: [ {name: 'aaa', field: 'aaa', 'width': initialCol1}, {
DataGrid
pagination的内容来看,我仍然可以让它工作。我有一个像这样的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
时都不会进行调用。有人知道问题出在哪里吗?尝试在网格声明中给出这一点
filter: {
isServerSide: true,
}
//它应该会自动启动请求我想这是对你问题的一个很好的回答:谢谢你的回答,但我已经看到了这一点,它并没有帮助你。。。我遇到的问题是,在向下滚动表时没有调用fetch,因此没有调用对jsonrest存储的查询。