Does anyone know how to solve this nasty issue with asp.net+asmx+jqGrid sorting. Because, in order to call pagemethods or asmx web services from jqGrid, it needs to be hacke
For those to whom @Groxx's solution didn't work (when I tried it the content of my grid dissapeared every time I tried to sort a column), try the solution from this thread. It worked for me. I'm using jqGrid 4.5.4.
First, set loadonce : true in your grid's settings. As explained here, this changes the datatype parameters to 'local' after the grids finishes loading for the first time. Then, when you want to reload the grid, change datatype back to json:
$('#your-grid').setGridParam({ datatype : 'json' }).trigger('reloadGrid');
If you are using navGrid you may want to review your add, edit and delete options to force your grid to reload like indicated in this answer.