I have a jqgrid that is completely populated locally. I have a select element in the grid aswell. This is produced as shown below
{ name: 'sparkline', width: 200, editable: true, edittype: 'select', formatter: 'select', editoptions: { value: sparklinedropdownstring }, classes: "extracellpadding" }
the variable 'sparklinedropdownstring' is a string set out like the examples from http://www.trirand.com/jqgridwiki/doku.php?id=wiki:common_rules
"value:label;value1:label1;value2:label2;value4:label5;"....etc etc
Now whenever I use the search bar or sort it always sorts or searches based on the value and not the label, I was wondering if i could search via the label instead? there are a few times where the value doesn't have a lot in common with the label and the average user would search for a label rather then a programmer's value.
My search and sort toolbars are setout like so:
myGrid.jqGrid('navGrid', '#mypager', { edit: false, add: false, del: false, search: false });
myGrid.jqGrid('filterToolbar', { stringResult: true, searchOnEnter: false, defaultSearch: "cn" });