Cannot read property 'asSorting' of undefined in dataTables 1.9?
Cannot read property 'asSorting' of undefined in dataTables 1.9?
tleithoff
Posts: 1Questions: 0Answers: 0
Hi, we upgraded our dataTables plugin from the 1.7 version to the 1.9 version, and are getting this error:
Cannot read property 'asSorting' of undefined
On tables that are not sortable. All tables that are sortable are fine. Has anyone else had this same problem or know how to fix it?
Cannot read property 'asSorting' of undefined
On tables that are not sortable. All tables that are sortable are fine. Has anyone else had this same problem or know how to fix it?
This discussion has been closed.
Replies
The fiddle uses jQuery 1.7.2 and DataTables 1.9.3 from the MSFT CDN.
Allan
I have corrected the fiddle, but still the error remains. I have re-read the prerequisites but don't see that I'm missing anything else.
I tried adding an empty tr to the thead as well, but to no effect. I also added a th inside of the tr in the thead, but also to no effect.
Any more suggestions?
http://jsfiddle.net/SFRXL/7/
The other issue was:
[code]
$("").dataTable();
[/code]
That creates a 'TABLE' element, rather than selecting the one from the document. Remove the angle brackets to select the table (which /7 does).
Allan