Uncaught TypeError: Cannot read property 'nTh' of undefined
Uncaught TypeError: Cannot read property 'nTh' of undefined
rmatinen
Posts: 3Questions: 1Answers: 0
Hi,
I use datatable in my site and when i click button, data from database fill my datatable.
when i use addon for my datatable for example Select Row...
it addon doesnt work and in my inspect element has one error:
Uncaught TypeError: Cannot read property 'nTh' of undefined in jquery.dataTables.min.js:10
who can help me?
sorry! my english is not well!
This question has accepted answers - jump to:
This discussion has been closed.
Answers
That will happen if the number of columns defined in the HTML does not match the number you've defined in the Javascript (using
columns
orcolumnDefs
).I would suggest checking that first.
If that doesn't resolve the issue, please link to a test case showing the issue, as per the forum rules.
Allan
Yes it works! Thank you!
but another error apears:
Uncaught TypeError: Cannot read property 'aDataSort' of undefined in jquery.dataTables.min.js:62
another question: when errors apear in this file, dont work next javascript code(for example Select Row)?
Can you link to the page so I can debug it please.
Allan
yes i can, i send a message for you
thank you