The data loads fine into the grid, but it won\'t sort.
When I click in the table header, the sort arrows appear, but the data\'s not being sorted.
Thanks.
The code you posted shows that the sorting will be done on the server not on the client. Your jqGrid will post sord
and sidx
parameters to allow you to do so as part of returning the data to the jqGrid.
Ex: C# MVC Controller code, where paging is also performed
public ActionResult GetGridData(string sidx, string sord, int page, int rows, bool _search, string filters)
{
...
var pagedQuery = wholeDataSet.OrderBy(sidx + " " + sord).Skip((page - 1) * rows).Take(rows).ToList();
...