Deleting row footer error
Deleting row footer error
krojew
Posts: 30Questions: 0Answers: 0
Hi,
I found a bug when using fnDeleteRow() function. After deletion, the item count in the footer does not get updated.
I found a bug when using fnDeleteRow() function. After deletion, the item count in the footer does not get updated.
This discussion has been closed.
Replies
[code]
$(document).ready(function() {
$('#example').dataTable();
setTimeout( function () {
$('#example').dataTable().fnDeleteRow( $('#example tbody tr:eq(0)')[0] );
}, 1000 );
} );
[/code]
The information text gets updated on every table draw, and fnDeleteRow does do a draw - unless you have disabled this by passing false as the third parameter.
Allan
[code]
departamentTable = $('#departament-table').dataTable({
bJQueryUI: true,
sDom: 'T<"clear"><"H"lfr>t<"F"ip>',
sPaginationType: 'full_numbers',
oLanguage: {
sUrl: '/js/i18n/dataTables.pl.txt'
}
});
[/code]
[code]
departamentTable.fnDeleteRow($('#departament-table tr.row-selected'));
[/code]
[code]
departamentTable.fnDeleteRow($('#departament-table tr.row-selected')[0]);
[/code]
Hopefully that will do the trick.
Allan