jqgrid多组搜索 [英] Jqgrid multigroup searching
问题描述
我正在尝试了解multigroup的搜索功能:是的.我正在使用以下演示:
I am trying to understand the search functionality of multiplegroup: true. I am using the below demo:
http://www.ok-soft-gmbh.com/jqGrid/SearchingDialogAboveGrid.htm
在这里,如果我给client = test5并在子组client = test6中给出"OR条件",则我希望有两行.但是我没有记录要查看.
Here if I give client = test5 and in the subgroup client = test6 with 'OR condition', I am expecting two rows. However i get no records to view.
请帮助我理解.
推荐答案
您描述的问题是jqGrid中的错误.我在此处.准备好相应的修复程序后,我会通知您.
The problem which you describe is a bug in jqGrid. I posted the corresponding bug report here. I will inform you after the corresponding fix will be ready.
作为解决方法,您可以修改onSearch
内部的postData.filters
,以便搜索请求类似
As a workaround you can modify the postData.filters
inside of onSearch
so that the search requests like
将转换为另一个等效查询
will be transformed to another equivalent queries
在答案和另一演示了如何在jqGrid应用该过滤器之前从postData.filters
修改该过滤器.
In the answer and another one demonstrate how one can modify the filter from postData.filters
before the filter will be apply by jqGrid.
这篇关于jqgrid多组搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!