Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82110

How to correctly destroy TableTools ?

$
0
0
Hi,

I can destroy a DataTable (which includes TableTools) by calling "fnDestroy(true)". Calling afterwards "$.fn.dataTable.fnTables(true)" will return an empty list. But calling afterwards "TableTools.fnGetMasters()" will return a list with one element, which is the TableTools instance for the table that I have destroyed.

I could not find a destroy function for TabelTools and so I am wondering how to get rid of the TableTools instance ?

[Edit]I also found out that if I create a new DataTable after having destroyed the previous table with "fnDestroy(true)" I end up with 2 master instances of TableTools being reported by "$.fn.dataTable.fnTables(true)". So for each time that I destroy and re-create my table I get an additional instance of Table Tools.[/Edit]

Regards,
Stephan

Viewing all articles
Browse latest Browse all 82110

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>