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

destroy does not destroy all table information

$
0
0

I am Trying to reuse a table by setting destroy:true option
But if the first table had 10 columns and the new table contains just 4 columns, it seems that the 6 previous headers hangs over,causing javascript error in jquery.datatables.js line 1154 - Typeerror: col is undefined.
if line 1154 if modified to:
if (col && col.mData ===i ) {
the table will run with the 4 new headers - but then additional old 6 columns headers will show
How do I really destroy ALL information for the dataTable making the table free for use next time ?


Viewing all articles
Browse latest Browse all 82375

Trending Articles



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