Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法从 jqGrid 中获取一个对象,该对象表示应用于当前结果集的过滤器参数?如果是,有没有办法稍后将此对象应用于网格?
我通常阅读postData网格的参数grid.getGridParam('postData');
postData
grid.getGridParam('postData');
它有一个名为的字符串属性filters,其中包含网格的当前过滤器(它是一个 json 文本)。
filters
您可以修改它,然后使用grid.setGridParam('postData', postData);
grid.setGridParam('postData', postData);