How to resolve the error 'TypeError: headerCells[i] is undefined'?
How to resolve the error 'TypeError: headerCells[i] is undefined'?
manashb
Posts: 3Questions: 1Answers: 0
Hi,
I am using server side processing to display a table in my application. It is working fine. But when i add a new column to the existing table it throws the above error. I have checked data is loaded properly. Tried datatable.destroy() not working.
This discussion has been closed.
Answers
Sounds like the number of columns in the HTML and the Javascript don't match. But without a test case (per the forum rules) it is impossible to say for sure.
Allan
Table is created dynamically in JavaScript. From my debugging, i have found fnServerData function is not working.
Resolved. It was from my side. Column index issue. Thanks for the response
We'd need a link to the page showing the issue to be able to debug it and offer any assistance. Happy to take a look if you link to the page.
Allan