How to hide several dynamic columns from the export?

How to hide several dynamic columns from the export?

Herve0Herve0 Posts: 2Questions: 1Answers: 0

I have a datatable built dynamically, columns may vary based on parameters.
but the latest columns are always links to modify, delete, duplicate, ... actions. (number of actions are also dynamic)
I want to export all visible columns but not the latest ones.
How can I solve this case?
Thanks.

Answers

  • kthorngrenkthorngren Posts: 21,173Questions: 26Answers: 4,923

    See if this Export Column Selector example helps. Note the choices you have for column-selector maybe you can find one that will help remove the "latest" columns.

    Kevin

  • Herve0Herve0 Posts: 2Questions: 1Answers: 0

    Thank you for your help but I can't find the way to remove those columns. Any other idea?

  • kthorngrenkthorngren Posts: 21,173Questions: 26Answers: 4,923
    edited December 2020

    Maybe add a classname to those columns and use something like ":not(.my-classname)".
    Or use column numbers. If this doesn't help please build a test case showing an example of what you have so we can provide more specific ideas.

    Kevin

This discussion has been closed.