我必须向完全在客户端管理的 jqGrid 添加过滤(数据仅从服务器加载一次)。
我需要使用 filterToolbar 来过滤网格数据,但如果客户端有默认搜索机制,则无法找到信息。服务器端搜索是执行此操作的唯一方法吗?
谢谢, 科斯明
最佳答案
不幸的是,搜索(过滤)仅在服务器端执行,according to the jqGrid docs :
Currently we do not have module for searching on local data i.e when a datatype options is set to local. All the searching is done server side.
更新
如下所述,jqGrid 3.7 中添加了对客户端过滤的支持。有关示例,请参阅 Tooolbar search 3.7节下的demo。
关于javascript - 使用 "filterToolbar"在客户端进行 jqGrid 过滤,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2849086/