I'm using Tablesorter and currently implementing server-side paging using Ajax. Tablesorter supports sorting on multiple columns and uses the following URL when clicking on the first column:
http://example.com/tablesorter/json?page=0&size=25&column[0]=1
The above works fine with my (Tablesorter)controller action:
public JsonResult Json(int page, int size, int[] column)
But if I only sort by the second column the following URL is called, which results in column being null. I guess due to a missing zero-index value.
http://example.com/tablesorter/json?page=0&size=25&column[1]=1
So my question is: Can I somehow model bind the given Tablesorter format using some other type or will I have to rewrite Tablesorter's URL format?
When sorting by multiple columns the format is:
http://example.com/tablesorter/json?page=0&size=25&column[0]=1&column[1]=1