The clearGridData method does not clear the swap panel

I use the clearGridData method for "jqGrid 3.8" to clear all data but not clear the "navigation layer".

$("#MyGrid").jqGrid("clearGridData", true);

Thoroughly clean the grid, but leave the “navigation layer”:

alt text

Update

change the "paging toolbar" to "navigation level"

+5
source share
2 answers

Use $("#MyGrid").jqGrid("clearGridData", true).trigger("reloadGrid");

+14
source

The parameter is rowNumnot a piece of data sent to the server or manually filled. If you show that an empty grid has no data, the user can switch the value at any time rowNum.

reset rowNum,

$("#MyGrid").jqGrid('setGridParam', {rowNum:10});

$("#MyGrid").jqGrid("clearGridData", true);

+3

All Articles