TypeError: columns[oState.order[i][0]] is undefined
TypeError: columns[oState.order[i][0]] is undefined
Hi,
i get this error if i use datatables 1.10.10 with colreorder 1.3.0 and stateSave:true.
If i use datatables and colreorder without stateSave all work fine. Even if i add stateSave:true it first work fine, but when i come back later (next day) i get the error. I tryed if it come when i close the broser and open it up again, but this dont trigger the error.
Firebug says
TypeError: columns[oState.order[i][0]] is undefined
oState.order[i][0] = columns[ oState.order[i][0] ]._ColReorder_iOrigCol;
on Row 846 in dataTables.colReorder.js
I tryed to make a Demo, but don't know if the error ocure there, could be find here: https://jsfiddle.net/xc9u1ac5/
I hope anybody can help me and sorry for my bad english :)
This question has an accepted answers - jump to answer
Answers
Should be:
As the
order
documentation notes it should be a 2D array if you want to specify an initial order.Allan
Shame on me, that i missed this.
Thanks for your help.