jQuery datatable in MVC (server-side)

https://datatables.net/usage/server-side

On the page above there are parameters that you need to recive to make server-side datatable work.
I have a helper class

public class TableParameter
{
public string sEcho { get; set; }
public int iDisplayStart { get; set; }
public int iDisplayLength { get; set; }
public int iSortingCols { get; set; }
}

but in order to sort columns i need to recive

string sSortDir_(int)

how do I do that? I know (int) represents column id that needs to be sorted,but I just can’t catch it in my controller

Read more here: jQuery datatable in MVC (server-side)

Leave a Reply

Your email address will not be published. Required fields are marked *