fnDeleteRow problem
fnDeleteRow problem
When calling fnDeleteRow using either an index or a node nothing happens.
I tried doing table.fnDeleteRow(1, null, true) (hardcoded 1 just for testing) and table.fnDeleteRow(tr, null, true) and in both case it returns an object containing a "nTr" property that appears to point to the right row, but the row isn't removed from the table.
What am I missing? I'm using jQuery 1.5.2 and DataTables 1.7.6
Thanks
I tried doing table.fnDeleteRow(1, null, true) (hardcoded 1 just for testing) and table.fnDeleteRow(tr, null, true) and in both case it returns an object containing a "nTr" property that appears to point to the right row, but the row isn't removed from the table.
What am I missing? I'm using jQuery 1.5.2 and DataTables 1.7.6
Thanks
This discussion has been closed.
Replies
For example on this page: http://datatables.net/release-datatables/examples/basic_init/zero_config.html , if you open the Javascript console and punch in:
[code]
$('#example').dataTable().fnDeleteRow( $('tbody tr:eq(0)')[0] );
[/code]
The first row is removed.
Allan