Destroy does not destroy table fully with Newest Version
Destroy does not destroy table fully with Newest Version
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
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
http://debug.datatables.net/edigut
Thanks for your help!
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