Destroy does not destroy table fully with Newest Version

Destroy does not destroy table fully with Newest Version

xuyan_dc@yahoo.comxuyan_dc@yahoo.com Posts: 4Questions: 2Answers: 0

This is how the table get initiated:

$("#patientTable").DataTable({
scrollY: patientTableHeight,
scrollX: true,
scrollCollapse: true,
paging: false,
info: false,
bFilter: false,
fixedColumns: {
leftColumns: 2
}
});

This is how it gets destroyed:

$('#patientTable').dataTable().fnClearTable();
$("#patientTable").dataTable().fnDestroy();

When reinitiating the table like above, table header persists with the new header created below the old one. If table was initiated with fixedColumns, data in fixedColumns would persist also.

The above code used to work in the older version of datatables.. With the newest I just updated to it no longer works; and with fixedColumn at the nightly version (to allow destroy work..)

This is an example after it has been reinitiated: http://imgur.com/j5hIaUy

Am I missing something?
Any help would be appreciated.

Thanks!

Answers

  • allanallan Posts: 61,744Questions: 1Answers: 10,111 Site admin

    Thanks for your question - however, per the forum rules can you link to a test case showing the issue please. This will allow the issue to be debugged.

    Information on how to create a test page, if you can't provide a link to your own page can be found here.

    Thanks,
    Allan

  • xuyan_dc@yahoo.comxuyan_dc@yahoo.com Posts: 4Questions: 2Answers: 0

    http://debug.datatables.net/edigut

    Thanks for your help!

  • allanallan Posts: 61,744Questions: 1Answers: 10,111 Site admin

    I'm afraid the debugger isn't going to provide enough information for this issue. Can you link to a test page showing the issue please.

    Allan

This discussion has been closed.