Can I hide certain info in a *cell* from export?

Can I hide certain info in a *cell* from export?

larrybudlarrybud Posts: 3Questions: 3Answers: 0

I have a grid which contains employee numbers. As an option, the user can change a dropdown to hide/show the numbers and replace them with the names. It's simply wrapping the values in a span tag.

However, when exporting, the export doesn't look at the CSS of the cell, and exports all data. What's the best way to handle exporting data such as this?

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    Hi @larrybud ,

    This example here should help. Here, the export is using columns.render to convert a checkbox in the table, to a "Y" or "N" in the export. You could do a similar thing in that render function, returning the name or number based on the selection.

    Hope that does the trick,

    Cheers,

    Colin

This discussion has been closed.