Dynamically disable sorting
Dynamically disable sorting

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
There is no option to dynamically disable a column's orderable property I'm afraid.
Allan