Reputation: 56669
We are using jqGrid search - for a given field, how can you specify a combo box with specific search values instead of a text box?
Upvotes: 1
Views: 3377
Reputation: 56669
Need to use stype
and searchoptions
:
{name:'expiry', index:'expiry', width:60, align:'right',stype:'select', searchoptions:{dataUrl:'expiry_select.htm'}}
More info here
Upvotes: 2
Reputation: 5442
Try something like this:
colModel:[
...
{name:'MyField',index:'MyField', width:80, align:"right", stype:'select', editoptions:{value:":All;0.00:0.00;12:12.00;20:20.00;40:40.00;60:60.00;120:120.00"}},
Upvotes: 1