stateRestore and colReorder Working
stateRestore and colReorder Working
I know that officially, colReorder is not compatible with stateRestore, but I noticed that since colReorder 1.5.6, column order is actually saved and loaded with stateRestore - and this works. However, the only issue is that if a reordered column is also sorted asc/desc, the sorting of that column is not saved with stateRestore.
Is there maybe some way to save column order with sorting correctly with stateRestore? I think this would make it completely compatible.
Test case with stateRestore, stateSave and colReorder: live.datatables.net/piborogi/1/edit
Answers
That's the problem, it works in most cases but here are those edge cases that give issues - that's why we're currently saying it's unsupported. We're happy to consider a pull request if you're able to resolve that issue.
Colin
Hi @colin, thank you very much for looking into this. I'd be happy to help, but unfortunately the base code is too complex for me.
I would say that the sorting issue on reordered columns is the only thing that keeps stateRestore from being compatible with colReorder as the column order is already saved correctly.
If there is some way to fix this and make it work with colReorder, it would make stateRestore truly complete. Any feedback/solutions would be much appreciated!