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
Your example wasn't running because jquery.js wasn't included. Fixed here:
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:
Yep, that's still the same I'm afraid.
@kthorngren thanks a lot. It works fine now.
It looks like you're new here. If you want to get involved, click one of these buttons!
DataTables designed and created by SpryMedia Ltd.
SpryMedia Ltd is registered in Scotland, company no. SC456502.