Column picker with variable columns

Posted by: luis.sansana on 4 January 2021, 11:33 am EST

  • Posted 4 January 2021, 11:33 am EST - Updated 3 October 2022, 2:55 pm EST

    Hi Grapecity team.

    Happy new year to all of you.

    I’m currently trying to add a column picker pop-up to a table.

    I’ve done it with different tables but the difference with this one in particular is that its columns change every time you choose an option (I’m sending an image to a better understand of this situation).

    I’ve declared the picker refference to the array because it wasn’t finding any columns before.

    Is there a way to make the column picker work? This is how the code is.



    Notice that the columns are not selected but they still show none the less

  • Posted 5 January 2021, 5:42 am EST

    Hi,

    We are sorry but we are unable to replicate the issue at our end. Could you please have a look at the following sample and let us know if we are missing something in order to replicate the issue:

    https://codesandbox.io/s/wijmo-vue-forked-n0970?file=/src/components/HelloWorld.vue

    You may also share a small sample of your own that replicates the issue so that we could further investigate it and assist you accordingly.

    Regards

    Sharad

  • Posted 6 January 2021, 8:50 am EST

    Hello,

    I don’t know why but I could solve the issue by inserting the columnPicker reference inside the initializeGrid function, instead of the mounted function. I’m using a tab component and it refreshes the table every time the user clicks in a different tab.

    Thanks for the help.

    Best wishes,

    Luís.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels