Getting error- Cannot read property 'mData' of undefined?
Getting error- Cannot read property 'mData' of undefined?
vinrok
Posts: 4Questions: 1Answers: 0
I have same element in <thead> <th> and <tbody> <td>. Please help.
This discussion has been closed.
Answers
There are lots of reasons this could happen. Without seeing you code its hard to guess. Please post a link to your page or a test case replicating the issue so we can help debug.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
Actually the table is created dynamically from a response and then I am using DataTable to add the filter to its header. live.datatables.net/yibiyoku/1/edit.
But it's giving me above mentioned error.
Here, it's not giving any issue but when I run it in my code and I am making .DataTable() call after ajax.done() in my js script, it's giving error that cannot read mData.....I will be able to explain more clearly via skype or hangout. Find my email id-chitrakathi03@gmail.com. Please help.
Your example seems to be working and not showing the error. Without seeing the problem its hard to say. Make sure your generated table meets the requirements described here:
https://datatables.net/manual/installation#HTML
You will need to check all rows to make sure they are correct.
Kevin
Absolutely it meets all the requirement that is there.
I'm not sure if the information collected by the debugger will help in this case but you can try it. Only the developers will be able to open the debug data. You can post the generated ID here or PM it to allan.
Kevin