客户端中的JqGrid搜索 [英] JqGrid search in client side

查看:78
本文介绍了客户端中的JqGrid搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在服务器响应json数据后,有一种方法可以在客户端进行搜索? 仅具有html/jscript和本地类型数组的jqGrid搜索示例在客户端执行数据搜索,但是当在服务器中部署了相同的jqgrid时,使用json返回服务器的jqgrid提示/请求. 我想更深入地了解这种行为!

There is a way to do search in client side after the server to response json data? The jqGrid search example with only html/jscript and array of type local perform the search of the datas on client side, but when a have the same jqgrid deployed within the server, with json return the jqgrid hint/request for the server. I would like to know about this behave on more deeply!

最好的不管!

推荐答案

如果我正确理解您的要求,则只需将loadonce: true添加到jqGrid参数的基数中.在第一次用服务器数据填充网格之后,将datatype'json''xml'更改为'local'.因此,您可以调用 filterToolbar 来使用工具栏搜索使用 navGrid 添加

If I understand correctly your requirements you need just add loadonce: true to the kist of jqGrid parameters. It will follows to changing datatype from 'json' or 'xml' to 'local' after the first filling of the grid with the server data. So you can call filterToolbar to use toolbar searching of use navGrid to add button used in advanced searching. Any kind of searching will be implemented locally.

这篇关于客户端中的JqGrid搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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