fnDeleteRow deletes wrong row

fnDeleteRow deletes wrong row

rwillmerrwillmer Posts: 10Questions: 1Answers: 0
edited December 2012 in Bug reports
The data has been loaded via Ajax.

Here's a testcase: http://hobthross.com/watchlist/testcase

If you click on the 'Del' button in the first one "Art of Scalability", a row is deleted from the table but it's not this one. Same for "Curse of the Pogo Stick".

(In the live version of this code, that click function will also delete the row from the backend database; that's not being done here for simplicity)

The displayed rows have been sorted by datatables; my theory is that the problem is related to a mismatch between the order of the rows returned by the ajax call and the order they're displayed in.

Replies

  • allanallan Posts: 63,381Questions: 1Answers: 10,449 Site admin
    Can I just confirm that this is a duplicate of this one: http://datatables.net/forums/discussion/13333/question-about-possible-fndeleterow-bug ?
  • rwillmerrwillmer Posts: 10Questions: 1Answers: 0
    Yes, it is. And you've just answered the problem there, so this can be closed/deleted.
This discussion has been closed.