fnDeleteRow

fnDeleteRow

mickotafmickotaf Posts: 2Questions: 0Answers: 0
edited December 2010 in Bug reports
I have a table.
Each row can be deleted with a button.
When the row is delete the the table is reDraw, and that's working.
But when there is one line there or on the last deleted row is an error :
............................................................................
aoData is undefined
http://mysite/js/jquery/jquery.dataTables.js
Line 2970
...................................................
I Use the last version 1.7.4
Thanks too help me.
[code]
$("#tableServiceBilled tr").bind("save_success", function()
{
//$(this).remove();
$myTable.fnDeleteRow($(this));
}
);
[/code]

Replies

  • allanallan Posts: 57,686Questions: 1Answers: 9,195 Site admin
    fnDeleteRow expects an node or an index - not a jQuery object :-). Just pass in 'this' and that will do it.

    Allan
  • mickotafmickotaf Posts: 2Questions: 0Answers: 0
    Thanks that's working very welll !!!!
This discussion has been closed.