Problem with With the DataTables ColVis
Problem with With the DataTables ColVis
knetadmin
Posts: 47Questions: 1Answers: 0
when i trying use .withColVisStateChange(stateChange) and hide or show columns this error displayed :
Uncaught TypeError: Cannot read property 'appendChild' of undefined
Note : i am using DTColumnDefBuilder not DTColumnBuilder
This discussion has been closed.
Replies
Hi,
Thanks for the question. Do you have an updated link that shows this issue so I can debug it? Using
columnDefs
shouldn't make any difference really.Thanks,
Allan
Thanks for reply
this is the link : http://54.191.119.153:8080/static/grid.html
when clicking hide or show columns the error displayed in browser console
Thanks for the link! This appears to be an issue in the version of ColVis that is being used on your page ( v1.1.0). Could you update to the latest release, which is 1.1.2 please: download link. That should resolve the issue.
Regards,
Allan
I downloaded ColVis 1.1.2 and put it inside by project and still face the same issue
the link : http://54.191.119.153:8080/static/grid.html
Thanks for the update, and my apologies. It wasn't the error that I had thought, but rather one that your test case let me trace to FixedColumns and it not correctly releasing all of its event handlers when a table was destroyed and recreated (which for some reason Angular is doing there).
I've just committed the required fix and the nightly version of FixedColumns (v3.0.5-dev) has the fix and will address the issue on your page.
Regards,
Allan