Can I cancel a draw event?
Can I cancel a draw event?
Hi there,
DataTables is, frankly, brilliant.
I have a table where the user can make the data "dirty". They can then click a "Submit Changes" button to submit the dirty data to the server to synchronize the UI and back end.
I want to be able to display a confirmation message if the user triggers an event that will redraw the table eg; paging, sorting, filtering or changing the page length. Otherwise the user will lose the dirty data in the page refresh. The confirmation will be "You have unsaved data in this page, do you want to save your changes now?"
I've tried fnDrawCallback but it is called after the table has already been drawn.
Is there a built in event I can implement for this?
Thanks
DataTables is, frankly, brilliant.
I have a table where the user can make the data "dirty". They can then click a "Submit Changes" button to submit the dirty data to the server to synchronize the UI and back end.
I want to be able to display a confirmation message if the user triggers an event that will redraw the table eg; paging, sorting, filtering or changing the page length. Otherwise the user will lose the dirty data in the page refresh. The confirmation will be "You have unsaved data in this page, do you want to save your changes now?"
I've tried fnDrawCallback but it is called after the table has already been drawn.
Is there a built in event I can implement for this?
Thanks
This discussion has been closed.
Replies