How to enable and disable sorting option for a datatable dynamically?

How to enable and disable sorting option for a datatable dynamically?

kalliskallis 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?

Answers

  • jimmyUserjimmyUser Posts: 1Questions: 0Answers: 0

    <th data-orderable="false">my column</th>

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    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

This discussion has been closed.