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

Using fnDeleteRow removes wrong row after 1 or more rows are deleted.

$
0
0
Version: 1.8.2

I am using datatables and allowing the user to remove row dynamically. However, I have ran into the issue that if you delete from the top down, row 0 being the first row index. The wrong row will be deleted anytime you try to delete a row after that, assuming you dont refresh the page.

This is how i am using it:
if(msg == "done"){
       var oTable = $j('#example').dataTable();
	oTable.fnDeleteRow(row, null, true);
								
}

Am i not using this correctly or maybe there is a work around. I cannot redraw the table because there could be a running process in the table at the same time the row is deleted.

Viewing all articles
Browse latest Browse all 82109

Trending Articles



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