I'm kinda stuck with the searchoptions property in jqgrid. When I hit the search icon in the grid and traverse to the field with the 'dropdown', I get to see the below error in firefox and IE8
FF : TypeError: g is undefined in jquery.jqGrid.min.js (line 239)
IE : Message: 'postData' is null or not an object Line: 238
Below is the code snippet,
{name:'City', index:'City', width:80, align:'right',
editable: true,search:true,edittype: 'select',stype:'select',
searchoptions: {
ajaxSelectOptions: {type: "GET",datatype:"text"},
dataUrl: '/TESTAPP/Test',
dataEvents: [
{ type: 'change',
fn: function(e) {
alert(this.value)
}
}
]}
I don't even see the request hitting the server which is very strange.
P.S : The same works fine with the editoptions
Version:
jqGrid: 4.4.5
jquery: 1.9.1
Thanks for any help!