row remove and toData

row remove and toData

optoopto Posts: 5Questions: 2Answers: 0

my data comes from an array.
I remove rows, they disappear from the table, but they stay in table.toData().

What am I doing wrong?

All by adding a button in each row and on click:
$this = $(this);
var dtRow = $this.parents('tr');
var table1 = $('#example1').DataTable();
table1.row(dtRow[0].rowIndex-1).remove().draw( false );

any help is appreciated,

Klaus

Answers

This discussion has been closed.