ASP MVC server side - trying to find a way to 'disable' sorting but keep pagination
ASP MVC server side - trying to find a way to 'disable' sorting but keep pagination
I do not have code to display -- it is on an intranet network.
I have an issue with trying to generate my data table the way that I need it.
I am trying to do a custom sort on my data (hierarchically, I have a custom function which works) and basically completely disable any sorting the datatable will do on it. I get the data in the form that I like but when I try to go to the next page, it displays the same first x rows. as the initial page. I am using server side processing that runs an ajax query to retrieve the data, filter it, sort it, and display it. Normally it would work with the traditional method but I am wanting to skip the process of converting the data into an IOrderedQueryable<Class> and still be able to paginate.
Answers
Does your server code support the server side protocol described here?
https://datatables.net/manual/server-side
Kevin