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

Row-Reorder - how to revert changes

$
0
0

Link to test case: https://live.datatables.net/cisejubo/3/edit?html,js,output
Debugger code (debug.datatables.net): N/A
Error messages shown: N/A
Description of problem: I am using row-Reorder to re-order rows, before i persist the changes, i may decided that i want to revert any changes back to the original data from when the table first loaded.

My example is of a 'cancel' button that, when clicked, clears the table and then attempts to re-add the data from the original source in the original order.
My test case is quite rudimentary but you can hopefully get the idea what i'm trying to do.

I expect that when i click the cancel button the table is re-drawn with the data from the original array of objects, but nothing is happening and the data in the table is remaining the same;
I would be grateful if you could point me in the right direction.

Thanks :-)


Viewing all articles
Browse latest Browse all 82432

Trending Articles



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