autoFill with columns selector and colvis

autoFill with columns selector and colvis

sagarbendalesagarbendale Posts: 18Questions: 6Answers: 0

Hi Allan,

I am trying to use autoFill with columns selector and colvis,

when some columns are hidden then I am getting the error on autoFill.js that
dataTables.autoFill.min.js:17 : Uncaught TypeError: Cannot read property 'row' of undefined(…)

but it works when I have all the columns visible.
or if I remove the columns selector.

Can you help with this one?

Thanks!!

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,960Questions: 1Answers: 10,158 Site admin

    Thanks for your question - however, per the forum rules can you link to a test case showing the issue please. This will allow the issue to be debugged.

    Information on how to create a test page, if you can't provide a link to your own page can be found here.

    Thanks,
    Allan

  • sagarbendalesagarbendale Posts: 18Questions: 6Answers: 0

    Hey Allan,

    I have just tried to reproduce the error on the fiddle.

    Here is the link to a jsfiddle.
    https://jsfiddle.net/11c77zbt/2/

    If you try to do autoFill when columns are hidden it will show you error property row. but you can do so if you view all the columns.

  • allanallan Posts: 61,960Questions: 1Answers: 10,158 Site admin
    Answer ✓

    Super - thanks for the test case! Its being caused by the use of the class name as the selector for AutoFill columns - it gets confused! I've committed a fix.

    This is your example with the latest code.

    Allan

  • sagarbendalesagarbendale Posts: 18Questions: 6Answers: 0

    Awesome.
    This works as expected.!!!

    Thanks a lot!!

This discussion has been closed.