Utilizing Tablesorter and in the process of implementing server-side paging through Ajax. Tablesorter enables sorting on multiple columns and utilizes this URL structure when clicking on the first column:
http://example.com/tablesorter/json?page=0&size=25&column[0]=1
The above scenario functions correctly with my current (Tablesorter) controller action:
public JsonResult Json(int page, int size, int[] column)
However, if I solely sort by the second column, the following URL is triggered which leads to a null value for the column parameter. I suspect this is due to a missing zero-index value.
http://example.com/tablesorter/json?page=0&size=25&column[1]=1
Therefore, my inquiry is: Is it possible to model bind the Tablesorter format using a different data type or will adjustments need to be made to Tablesorter's URL pattern?
For sorting by multiple columns, the format should be as follows:
http://example.com/tablesorter/json?page=0&size=25&column[0]=1&column[1]=1