I'm trying to dynamically load values into a select in a jqGrid. It almost works. The problem is that the values that are returned from the server, are not displayed until the user change row! When I debug, I can see the correc values are being set, but the selection list does not update! Using IE9.
$("#my_grid").setColProp("master_col", { editoptions: { value: data.verksamheter, dataEvents:
[
{ type: 'change', fn: function (e) {
var url = '@Url.Action("GetData", "Controller")'
$.getJSON(url, { id: e.srcElement.value }, function (data) {
$("#my_grid").setColProp("details_col", { editoptions: { value: data.verksamhetsslag} });
});
}
}
]
}
});