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 of searchoptions
the sopt
options which begin with 'eq': stype:'select', searchoptions: {sopt:['eq','ne']}
for example.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With