Callback *before* sort
Callback *before* sort
Hi all,
We have a large table and when clicking on a header to sort, it takes a noticeable amount of time. We'd like to update the UI to indicate something is happening and then clear the notice after the sort is complete.
I haven't quite sorted out if the fnSortListener is only called after the sort has already occurred, or if the issue is that it's called but then the sort is done without a setTimeout so there's no opportunity to update the UI before the work occurs. Either way, I guess my question is:
How does one update the UI during an intensive operation like sorting?
Thanks
We have a large table and when clicking on a header to sort, it takes a noticeable amount of time. We'd like to update the UI to indicate something is happening and then clear the notice after the sort is complete.
I haven't quite sorted out if the fnSortListener is only called after the sort has already occurred, or if the issue is that it's called but then the sort is done without a setTimeout so there's no opportunity to update the UI before the work occurs. Either way, I guess my question is:
How does one update the UI during an intensive operation like sorting?
Thanks
This discussion has been closed.
Replies
Allan