fnDeleteRow issue with delete rows restoring on resort.

fnDeleteRow issue with delete rows restoring on resort.

tbone587tbone587 Posts: 18Questions: 0Answers: 0
edited September 2012 in General
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]

Replies

  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    Do you have server-side processing enabled? Are you actually deleting the row from the server?

    Allan
  • tbone587tbone587 Posts: 18Questions: 0Answers: 0
    I am not sure what exactly was wrong, but I got it to work at this point.. Thank you for your help!
This discussion has been closed.