fnDeleteRow issue with delete rows restoring on resort.
fnDeleteRow issue with delete rows restoring on resort.
I have implemented the fnDeleteRow function, which appears to delete the row, but when you re-sort the table, the data restores.. How do I get around this?
[code]
ar rowIndex = 0;
//DataTable Rows
var UserDataTableRows = userDataTableList.$('tr');
UserDataTableRows.each(function(){
if ($(this).hasClass(groupId))
{
hiddenDataTableListTbody.append($(this));
UserDataTableList.fnDeleteRow(rowIndex);
}
rowIndex++;
});
UserDataTableList.fnDraw();
[/code]
[code]
ar rowIndex = 0;
//DataTable Rows
var UserDataTableRows = userDataTableList.$('tr');
UserDataTableRows.each(function(){
if ($(this).hasClass(groupId))
{
hiddenDataTableListTbody.append($(this));
UserDataTableList.fnDeleteRow(rowIndex);
}
rowIndex++;
});
UserDataTableList.fnDraw();
[/code]
This discussion has been closed.
Replies
Allan