Problem with With the DataTables ColVis

Problem with With the DataTables ColVis

knetadminknetadmin Posts: 47Questions: 1Answers: 0
edited April 2015 in Priority support

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

Replies

  • allanallan Posts: 63,488Questions: 1Answers: 10,467 Site admin

    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

  • knetadminknetadmin Posts: 47Questions: 1Answers: 0

    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

  • allanallan Posts: 63,488Questions: 1Answers: 10,467 Site admin

    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

  • knetadminknetadmin Posts: 47Questions: 1Answers: 0

    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

  • allanallan Posts: 63,488Questions: 1Answers: 10,467 Site admin

    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

This discussion has been closed.