简体   繁体   English

使用“ filterToolbar”在客户端进行jqGrid过滤

[英]jqGrid filtering on the client-side using “filterToolbar”

I have to add filtering to a jqGrid that is completely managed on the client side (data is only loaded once from the server). 我必须向完全在客户端上管理的jqGrid添加过滤(数据仅从服务器加载一次)。

I need to use filterToolbar in order to filter the grid data, but couldn't find info if there is a default search mechanism on the client side. 我需要使用filterToolbar来过滤网格数据,但是如果客户端上存在默认的搜索机制,则无法找到信息。 Is a server-side search the only way to do this? 服务器端搜索是做到这一点的唯一方法吗?

Thanks, Cosmin 谢谢Cosmin

Unfortunately search (filtering) is only performed server-side, according to the jqGrid docs : 不幸的是, 根据jqGrid docs ,搜索(过滤)仅在服务器端执行:

Currently we do not have module for searching on local data ie when a datatype options is set to local. 当前,我们没有用于搜索本地数据的模块,即当数据类型选项设置为local时。 All the searching is done server side. 所有搜索都在服务器端完成。

Update 更新资料

As noted below, support for client-side filtering has been added in jqGrid 3.7. 如下所述,jqGrid 3.7中添加了对客户端筛选的支持。 For an example see the Tooolbar search demo under the 3.7 section. 有关示例,请参见3.7节中的Tooolbar搜索演示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM