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

Best way to reload data and load new table

$
0
0
Hey there,

I have a few questions...

First, what is the best method of resetting a data table with new data? As in, I want to remove all rows, and then add a whole new set of rows through ajax, all the while retaining the table's state (column positions/visibility, filtering, page, etc) as well as being able to use table tools with any row in the new data set (this is what's not working for me, I get "Cannot read property 'nTr' of undefined" when using a tt button on a row that wasn't in the previous data set).

Second question - What is the best way to completely reset a table? As in, I want to wipe out a table (columns 'n all) and load a completely different one through ajax.

It's amazing how complicated things get when one decides that page refreshes are evil!

Viewing all articles
Browse latest Browse all 82263

Trending Articles



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