Problem with colReorder
Problem with colReorder
gauravweb
Posts: 4Questions: 2Answers: 0
I have a very simple table. Sorting, fixed header all works fine but colReorder throws error.
TypeError: Argument 1 of Node.insertBefore is not an object.
Here is my code :
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Your example wasn't running because jquery.js wasn't included. Fixed here:
http://live.datatables.net/defekozu/4/edit
The problem seems to be with the first header. You have colspan in the header. According to this thread ColReorder doesn't work with colspan in the header. @allan or @colin can confirm if this is still the case.
Removing the top header with the colspan allows ColReorder to work:
http://live.datatables.net/qacunono/1/edit
Kevin
Yep, that's still the same I'm afraid.
Colin
@kthorngren thanks a lot. It works fine now.