Add dataTable after bDestroy

Add dataTable after bDestroy

ratm54ratm54 Posts: 9Questions: 0Answers: 0
edited April 2011 in Bug reports
Hello,

I suggest a modification concerning the creation of table after destruction in function this.fnDestroy on line 2198 :
[code]nOrig.appendChild( oSettings.nTable );[/code]

Indeed i have a div with button under the dataTable and after function "this.fnDestroy" my button is upper the dataTable.

I think the best way to recreate dataTable is to keep the node nOrig and delete all the element under this node.
Thus, you have keep position of nOrig.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    That's a good point - there isn't quite enough information stored in DataTables at the moment to put the table back exactly where it should be. It might need to store the next sibling (if there is one). Or moving the table above the position of the injected wrapper... Hmmm - good one. I'll have a look - thanks :-)

    Allan
This discussion has been closed.