Best way to reload data and load new table

Best way to reload data and load new table

mruivomruivo Posts: 7Questions: 0Answers: 0
edited December 2012 in General
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!
This discussion has been closed.