使用"filterToolbar"在客户端上进行jqGrid过滤. [英] jqGrid filtering on the client-side using "filterToolbar"

查看:445
本文介绍了使用"filterToolbar"在客户端上进行jqGrid过滤.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须向完全在客户端上管理的jqGrid添加过滤(数据仅从服务器加载一次).

I have to add filtering to a jqGrid that is completely managed on the client side (data is only loaded once from the server).

我需要使用filterToolbar来过滤网格数据,但是如果客户端上存在默认的搜索机制,则无法找到信息.服务器端搜索是做到这一点的唯一方法吗?

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. Is a server-side search the only way to do this?

谢谢, 波斯菊

推荐答案

不幸的是,搜索(筛选)仅在服务器端执行,

Unfortunately search (filtering) is only performed server-side, 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中添加了对客户端筛选的支持.有关示例,请参见3.7部分中的工具栏搜索演示.

As noted below, support for client-side filtering has been added in jqGrid 3.7. For an example see the Tooolbar search demo under the 3.7 section.

这篇关于使用"filterToolbar"在客户端上进行jqGrid过滤.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆