I am using jqgrid and the toolbar filter. After filtering I want to reload the searchoptions in the toolbar filter with:
loadComplete: function() {
mygrid.jqGrid('setColProp','device_nr',{searchoptions: {dataUrl:'filter_jq.php?val=newval'}});
}
I tried also:
var str = ":All;1:Dev1;2:Dev2";
mygrid.jqGrid('setColProp','device_nr',{searchoptions:{value:str}})
But nothing changed.(but I can change the param "sopt"). Is it possible to change the searchoptions in filter toolbar with setColProp?
This is how it defined in ColModel:
colModel:[{name:'device_nr',index:'device_nr', width:100, stype: 'select',searchoptions:{dataUrl:'filter_jq.php?val=init',sopt:['eq']}}
]