ColReorder
ColReorder copied to clipboard
Resetting table does not reset ColReorder
Hello,
thank you for providing ColReorder!
- I initialize a table with a reorder
OCA.Analytics.tableObject = new DataTable(domTarget, { colReorder: { order: [0, 2, 1, 5, 6, 4, 3]} }) - I destroy the table
OCA.Analytics.tableObject.destroy(); - I initialize a table without a given order
OCA.Analytics.tableObject = new DataTable(domTarget, { colReorder: true }) - The table columns are off
- Adding a
OCA.Analytics.tableObject.colReorder.reset()before the destroy does not make a difference. something seems to be kept in memory somewhere? - doing a draw() after the table is displayed will correct the display, but this is not intended
- doing a full refresh into the second table, it is shown correctly
reordered table:
normal table after coming from the reordered one:
I want to add some additional finding for documentation purposes.
I use the parameter scrollX: true.
if this is removed, the tables is generated correctly with colReorder: true
but why does it work with a completely clean table, but not with a redrawn, once it was colReordered before?
Could you create a test case demonstrating the issue please? I've just tried to do so here: https://live.datatables.net/hudumofu/1/edit but it appears to work as expected.