How to Disable sorting 1st column from thead as well as from tbody?
How to Disable sorting 1st column from thead as well as from tbody?
ranjansingh009
Posts: 1Questions: 1Answers: 0
Hello Team,
I want to disable sorting from 1st column from thead aswell as from tbody.?
This discussion has been closed.
Answers
I don't understand. There is no distinction between thead and tbody for sorting purposes. Just disable the column's ordering.
https://datatables.net/reference/option/ordering
If you use
columns.orderable
to disable the user's ability to sort the column, you also have to useorder
to set the initial ordering of the table.Allan