I\'ve been having problems getting jqGrid to sort. I\'d like to preferable do this sorting on the client, but I\'m also willing to make a new call to the database to get th
loadonce only works with the predefined loaders. If you use datatype as function you should set datatype:local manually after the first loading of the grid with the custom function.
Try something like this:
datatype : function (){
$.ajax({
…
complete :function (…){
…
$("#mygrid").setGridParam({datatype:'local'});
}
})
},