如何重置 JQGrid 中的过滤器并取回整个数据?
不知何故,我必须创建参数,如:
_search false
filters {"groupOp":"AND","rules":[]}
nd 1363780609723
page 1
rows 20
sidx application_name
sord asc
我试过下面的代码
var grid = $("#list");
grid.jqGrid('setGridParam',{search:false});
var postData = grid.jqGrid('getGridParam','postData');
$.extend(postData,{filters:""});
grid.trigger("reloadGrid",[{page:1}]);
但它会生成类似的参数
_search false
filters
nd 1363780823111
page 1
rows 20
sidx application_name
sord asc
我只需要像这样发送过滤器参数但不知道如何
filters {"groupOp":"AND","rules":[]}