Unbinding and re-binding sort listeners
Unbinding and re-binding sort listeners
shannonwrege
Posts: 22Questions: 9Answers: 0
I have a situation where a particular view of the table should disable all sorting by clicking on the table headers. When I change the view, I want to re-enable the default sort clicking of the table headers. Is this possible?
I know that when you initialize, you can make columns not orderable. But I want them to start out orderable, and I basically want to be able to toggle this setting on and off.
Thanks for any advice or suggestions.
Best,
Shannon
This discussion has been closed.
Answers
Another way I could do this would be capturing the click before the sort happens and ignore it. Is there a callback before the table sort takes place that I could drop if the table is this "unsortable" state?