Error When Adding New Columns
Error When Adding New Columns
I have a fairly simple test-case, here: http://meritt.us/dt.htm which demonstrates the issue I am having.
I am trying to dynamically update my table, sometimes which brings not only new rows but new columns into a table. When I try and update aoColumns, aaData (and bDestroy=true) with a dataset that contains additional columns, I'm getting an error. You can reproduce and see the error at the above link. Once the table loads, simply click the "new data" link and it causes a JS error.
Any ideas how I can correctly do this? I've also tried calling fnDestroy(); to completely eliminate the table but the error still persists.
I am using DataTables 1.8.2 and in the full source, the error is:
Uncaught TypeError: Cannot read property 'style' of undefined in jquery.dataTables.js:5658
I am trying to dynamically update my table, sometimes which brings not only new rows but new columns into a table. When I try and update aoColumns, aaData (and bDestroy=true) with a dataset that contains additional columns, I'm getting an error. You can reproduce and see the error at the above link. Once the table loads, simply click the "new data" link and it causes a JS error.
Any ideas how I can correctly do this? I've also tried calling fnDestroy(); to completely eliminate the table but the error still persists.
I am using DataTables 1.8.2 and in the full source, the error is:
Uncaught TypeError: Cannot read property 'style' of undefined in jquery.dataTables.js:5658
This discussion has been closed.