Cannot set property '_DT_CellIndex' of undefined when working with a dynamically created DataTable
Cannot set property '_DT_CellIndex' of undefined when working with a dynamically created DataTable
Hi, Thanks for a great plugin!
I'm using the child row table example, combined with the child rows displayed on the click of a button. What I want is the child table to be a fully functioning datatable with an editor.
https://datatables.net/examples/api/row_details.html
https://datatables.net/blog/2016-03-25
I have a parent table which is loading the data from the html. I was able to follow the row_details page and show the extra details. These details are coming from the same json object as the parent object, but a nested object.
When I create the child table, it shows, but when I call DataTable on it I get the following error:
Cannot set property '_DT_CellIndex' of undefined
I saw in other posts that this error can be caused by the number of columns not matching the fields in the data. But I specify the columns to be used in the table, and that works fine for the parent table.
Url:
http://admin.doctorpension.com/test.php
The customized code is in the file ending with funds.js
Any help would be appreciated!
This question has an accepted answers - jump to answer
Answers
I'm not seeing that error I'm afraid. Have you managed to fix it since your post? When I click on the button to show the child row, it shows a correctly rendered DataTable and I don't see any errors.
Allan
Yes, I did. Thank you for the quick reply though!