Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jqgrid搜索中的多个和/或选项_Jqgrid - Fatal编程技术网

jqgrid搜索中的多个和/或选项

jqgrid搜索中的多个和/或选项,jqgrid,Jqgrid,我正在我的项目中使用JQGRID高级搜索。每个搜索规则是否可能有多个和/或条件。就是 Name = John AND Amount < 500 OR Tax > 30. Name=John和 金额30。 基本上,我希望在每个搜索规则之后都有AND/OR条件。请帮助?可以通过使用搜索选项multipleSearch:true,multipleGroup:true来实现它我知道multigroup。但我希望每个搜索规则旁边都有AND/OR。@user1986736:如果需要,您可以通

我正在我的项目中使用JQGRID高级搜索。每个搜索规则是否可能有多个和/或条件。就是

Name = John AND
Amount < 500 OR
Tax > 30.
Name=John和
金额<500或
税收>30。

基本上,我希望在每个搜索规则之后都有AND/OR条件。请帮助?

可以通过使用搜索选项
multipleSearch:true,multipleGroup:true来实现它

我知道multigroup。但我希望每个搜索规则旁边都有AND/OR。@user1986736:如果需要,您可以通过修改
postData.filters
中的
onSearch
回调来添加新的搜索规则。有关代码示例,请参见。