开发者

jqGrid filtering on the client-side using "filterToolbar"

开发者 https://www.devze.com 2022-12-31 13:30 出处:网络
I have to add filtering to a jqGrid that is completely managed on the client side (data is only loaded once from the server).

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

I need to开发者_JS百科 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?

Thanks, Cosmin


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.

Update

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消