开发者

The method "clearGridData" does not clear the paging toolbar

开发者 https://www.devze.com 2023-02-03 22:16 出处:网络
I\'m using the method \"clearGridData\" of \"jqGrid 3.8 \" to clear all data, but not clearing the \"Navigation layer\".

I'm using the method "clearGridData" of "jqGrid 3.8 " to clear all data, but not clearing the "Navigation layer".

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

Thoroughly clean the grid, but leaves the "Navigation layer":

The method "clearGridData" does not clear the paging toolbar

update

change "paging toolbar" by "N开发者_运维技巧avigation layer"


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


The rowNum parameter is not the part of data sent to the server or filled manually. If you show the empty grid having no data the user are able to switch the value of rowNum any time.

If you need to reset the rowNum parameter you can use

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

together with the call $("#MyGrid").jqGrid("clearGridData", true);

0

精彩评论

暂无评论...
验证码 换一张
取 消