Remove sorting for specific column of the dataTable
Remove sorting for specific column of the dataTable
![Afroz Ali](https://secure.gravatar.com/avatar/ebca92a72aab28259d729c14a31604b6/?default=https%3A%2F%2Fvanillicon.com%2Febca92a72aab28259d729c14a31604b6_200.png&rating=g&size=120)
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