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)


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: