You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to run some code which relies on the contents of the table after it changes the displayed contents, for example after sorting or changing the page. It would be great if there was some event fired after this event, but since there isn't, my current workaround is to bind an event to clicking the sort or page buttons.
There are two problems with this:
Click event doesn't fire when clicking the sort buttons, unless you set pointer-events: none
Running the code immediately after clicking doesn't work, because the table takes time to update. I tried binding to the grid's on('ready') event, but this doesn't seem to fire when sorting or changing the page. My current hacky workaround is to set a timeout for 20ms to give the table time to update, but this is not ideal.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I need to run some code which relies on the contents of the table after it changes the displayed contents, for example after sorting or changing the page. It would be great if there was some event fired after this event, but since there isn't, my current workaround is to bind an event to clicking the sort or page buttons.
There are two problems with this:
pointer-events: none
on('ready')
event, but this doesn't seem to fire when sorting or changing the page. My current hacky workaround is to set a timeout for 20ms to give the table time to update, but this is not ideal.Beta Was this translation helpful? Give feedback.
All reactions