fnAddTr does not preserve attached events

fnAddTr does not preserve attached events

dcsoftdcsoft Posts: 2Questions: 0Answers: 0
edited March 2014 in General
Hello, thanks for DataTables! Makes me look like a star even if I'm not. ;)

I am using fnAddTr to add a element for which JavaScript events have been previously attached. But the events are not preserved by fnAddTr. Would it be possible to make them preserved, similar to jQuery.clone() has a parameter to preserve events?

Thanks,
David

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    fnAddTr doesn't, but `row.add()` in 1.10 does: http://next.datatables.net/reference/api/row.add() :-)

    Allan
  • dcsoftdcsoft Posts: 2Questions: 0Answers: 0
    Thanks Allan - on to 1.10! :-)
This discussion has been closed.