ordering with statesave enabled
ordering with statesave enabled
ChrisR
Posts: 2Questions: 1Answers: 0
it appears that order on works only as expected with stateSave = false. Is this as designed?
$('#test').DataTable({
//stateSave: true,
"scrollY": '50vh',
"scrollCollapse": true,
"paging": false,
"order": [[0, "desc"]]
});
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Are you saying that you can't order the table with stateSave true or the table order is not set to
order": [[0, "desc"]]
when the page is reloaded?If its the second then you can use
stateSaveParams
to either remove order from being saved or set it to what you want, for example:Kevin
Kevin - yes, it was the second. Thanks for the solution.