How to enable and disable sorting option for a datatable dynamically?
How to enable and disable sorting option for a datatable dynamically?
kallis
Posts: 5Questions: 4Answers: 0
How to enable and disable sorting option for a datatable dynamically(Not for a particular column. whole datatable ). Is there any api methods are available for to do this and how to add and remove "dom" option dynamically?
This discussion has been closed.
Answers
<th data-orderable="false">my column</th>
There currently isn't a way to dynamically enable and disable ordering for columns in a DataTable via the API. It has to be done at initialisation time.
Allan