本文介绍了jqGrid中不区分大小写的搜索,包括隐藏字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的jqGrid中没有几个隐藏字段,我必须对它们执行不区分大小写的搜索(可能使用正则表达式-不确定).是否有可能?有人可以给我指示吗?
I have few hidden fields in my jqGrid on which I have to perform a case insensitive search (may be using regex - not sure). Is it possible? Can someone give me directions on it?
谢谢!
推荐答案
您应该inseart searchhidden 选项等于列定义(colModel
)中的true
:
You should inseart searchhidden option equal to true
in the column definition (colModel
):
searchoptions:{searchhidden:true}
要使搜索不区分大小写,可以使用jQgrid选项 ignoreCase:true .
To make searching case insensitive you can use jQgrid option ignoreCase:true.
这篇关于jqGrid中不区分大小写的搜索,包括隐藏字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!