After reading the jqGrid wiki (and taking example from: Case insensitive search in jqGrid including hidden fields), I cannot find what I want to do.
Is there any search option to enable a search anywhere in a column (automatically wildcarded).
If the column contains "Apple Iphone" I would be able to find it by using the search "iphone".
The SQL equivalent would be select * from table where lower(columnX) like '%iphone%';
Since you use toolbar searching the solution of your problem seems to be simple. You should:
ignoreCase:true
to the jqGrid parametersdefaultSearch:'cn'
option to the call of filterToolbar. For example:$("#list").jqGrid('filterToolbar', {defaultSearch:'cn'})
.stype:'select'
) you should include in the list ofsearchoptions
thesopt
options which begin with 'eq':stype:'select', searchoptions: {sopt:['eq','ne']}
for example.Now if your text contains "here i go" and if you search "go", it will surely search, it works for me.
Give a try and reply if it doesn't.
In the above example the
**defaultSearch : "cn"**
is used to search using any substring of item you want to search. RemovingdefaultSearch : "cn"
starts search beginning with the substring.