Remove sorting for specific column of the dataTable
Remove sorting for specific column of the dataTable
Afroz Ali
Posts: 5Questions: 3Answers: 0
Hi,
I want to know how to remove sorting option(functionality) for specific column of the dataTable. For example, In my case i want to remove sorting option for last two column of the dataTable. Thanks in advance.
Thanks & Regards,
Ali
This discussion has been closed.
Answers
https://datatables.net/reference/option/columns.orderable
You can also use this with classes assigned to your columns making your code easier to maintain if you add columns later on.
HTML
Javascript