I currently have this jqGrid column search option defined;
colDefs.Append(",stype: 'select', searchoptions: { sopt: ['eq', 'ne'], value: ':All;99:Yes;1:No'}");
So it correctly filters to value 99 for search option 'Yes' and to value 1 for 'No'.
How can I make it filter to anything other than 99 (i.e. NOT 99) for 'No' instead of just 1?
I tried a few guesses like ...;!99:No'}" but they just error.
Users are not able or required to choose between Equals/Not equals or any other filtering option. They only get to select from the three fixed options, 'All', 'Yes' or 'No'.
Currently 'All' shows all records, 'Yes' shows only records with value '99' (data is string), 'No' shows only records with value '1'.
What I am aiming for 'All' should show all records, 'Yes' should show only records with value '99' and 'No' should show all records where value is NOT '99'. Can I define 'searchoptions' to do this?
Cell datatype is String.
FilterToolbar defined by
$('#' + this.instance + '_GridContainer_grid').jqGrid('filterToolbar', {
stringResult: true,
defaultSearch: 'cn'
});
Filtering is local, not server.
Thanks!