From what I have read on the internet about DataGrid
pagination, I still can make it work. I have a DataGrid
like this:
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();
I tried different combinations of rowsPerPage
and autoheight(number/off)
but whenever I scroll down no call is made not even on the fetch of the ObjectStore
. Does anyone know what the problem is?