loadComplete/onPaging solution does not seem to work with jqGrid 4.1.2.
Looking at the code, in case of 'datatype: json' (or xml and maybe others), no data is stored on the client side (in ts.p.data) unless 'loadonce: true' is specified. But if you specify 'loadonce: true', paging is disabled.
The 2 scenarios:
datatype: json, loadonce: false
- paging works (serverside)
- sorting does not work (after doing sort, grid is empty)
datatype: json, loadonce: true
- paging is disabled
- sorting works (clientside)
Erik