0

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?

4

1 に答える 1

0

グリッド宣言でこれを指定してみてください

filter: {
             isServerSide: true,                 
 }

//リクエストを自動的に起動する必要があります

于 2014-05-26T13:33:43.357 に答える