Notifications
Clear all
0
October 31, 2022 8:05 am
Topic starter
Trying to sequence some code to fire after a dataView sort is complete - is there an event after sort is done?
2 Answers
0
November 15, 2022 6:55 am
Topic starter
As a follow up, basically, I have a large dataview with lots of data and lots of custom comparerows, and it takes sometimes several seconds for a sort to complete. I'd like to know when the sort is done, so I could perhaps have some visual indicator that a sort is occurring for the benefit of the user.
0
November 15, 2022 9:49 am
The best way to handle this currently would likely be to handle the SortColumn event. You would need to call dataview.sort() and ignore the second call generated by sort(). Something like:
static ignoreCall as boolean=false if ignoreCall then return false //this allows the built-in sort to happen ignoreCall=true // to prevent infinite recursion //do some visual indicator stuff here me.sort() //end the visual indicator ignoreCall=false return true // to prevent the built in sort, which would also cause recursion
If that doesn't work out, I could add a didSort event that you could use.
This post was modified 10 months ago by Jim