Sorting is not working at server side processing
Sorting is not working at server side processing
I have used jquery data table in my application, I am trying to assign data at server side since it is huge data. when i try to write sorting code at server side, i am trying to get sortcolumn by using below code, it is working at first time and I could able to sort. but when I perform any search operation and then try to load data , it is throwing exception at the place where I am getting sort column info . Please help me to get sort column if any other way ?
var sortColumn = Request.Form.GetValues("columns[" + Request.Form.GetValues("order[0][column]").FirstOrDefault() + "][name]").FirstOrDefault();
var sortColumnDir = Request.Form.GetValues("order[0][dir]").FirstOrDefault();
Answers
PUT this columin this struct:
repeat "name" in all field to pass the column name