Dynamically disable sorting

Dynamically disable sorting

TheSanchesTheSanches Posts: 2Questions: 1Answers: 0

How to dynamically disable sorting by clicking a button?
I tried several options, but none of them worked...

table.settings()[0].ordering = false;
table.ordering(false);
table.orderable(false);

All the above examples didn't work.

Below is the code I am trying to use...

{
      text: '<bean:message key="button.save"/>',
      className: 'qs-button qs-data-table',
      action: function () {
       table.orderable(false);
     }
 }

Answers

  • allanallan Posts: 62,986Questions: 1Answers: 10,365 Site admin

    There is no option to dynamically disable a column's orderable property I'm afraid.

    Allan

Sign In or Register to comment.