Default order but no sorting
Default order but no sorting
Hello,
I'm using DataTables with serverSide processing. Now I want it to order the result, but disable sorting. So the result it retrieves from the database must be orders by default, but the user itself is unable to sort it.
I tried this:
$('#table').DataTable({
...,
"sort": false,
"order": [[ 0, "desc"]],
});
But that doesn't sort. When I set sort to true, the result is ordered desc, but the user can also order the result. How can I fix that?
This discussion has been closed.