Dynamic reload of datatable causes TableTools troubles
Dynamic reload of datatable causes TableTools troubles
I posted this question as a comment in this thread -> http://datatables.net/forums/discussion/comment/40977 but noone answered so I am trying again.
http://live.datatables.net/arucaq/21 displays the issue I am having quite nicely. Click on the big red button to reload the table, and the javascript console emits the error message "Uncaught TypeError: Cannot read property '_DTTT_selected' of undefined"
Any ideas on how to solve this issue will be hugely appreciated.
http://live.datatables.net/arucaq/21 displays the issue I am having quite nicely. Click on the big red button to reload the table, and the javascript console emits the error message "Uncaught TypeError: Cannot read property '_DTTT_selected' of undefined"
Any ideas on how to solve this issue will be hugely appreciated.
This discussion has been closed.
Replies
Thank you.
Unfortunately TableTools destroy method is rather lacking - so when you destroy the table TabletTools isn't correctly unbinding itself. Thank you for providing an example of this - it was really helpful!
I've committed a change to TableTools to address the issue - I've updated your example to use the currently nightly here: http://live.datatables.net/arucaq/22/edit .
The nightly can be downloaded from http://datatables.net/download (2.1.5.dev) or from the git repo's head.
Regards,
Allan
Leif.