Server Side Default Sorting
Server Side Default Sorting
mauro218
Posts: 9Questions: 5Answers: 0
I'm using DataTables 1.10 with settings:
processing: true,
serverSide: true,
Based on the page below I should only need to add order: [[ 3, "desc" ]],
and that should do it but it is not.
https://datatables.net/examples/basic_init/table_sorting.html
The posted params to the server are still:
order[0][column] 0
order[0][dir] asc
How can I override these setting so the sorting params look like:
order[0][column] 3
order[0][dir] desc
Thank you in advance!
This discussion has been closed.
Answers
The
order
option should define the default ordering. if it is not, can you link to the page showing the problem so I can debug it please.Allan
I have exactly the same problem. Using the latest version. None of the documented settings allow me to sort my table as I want at the table initialization. After the table renders, I can sort any column, anyway I like.
Sadly, I don't have an open api for you to debug :(
Can you use the debugger so I can see how the table is created, or please use JSFiddle or any of the other services available to create a test case so I can debug and help resolve the problem.
Allan