FlowingCode / GridExporterAddon

Apache License 2.0
10 stars 9 forks source link

Exporting columns that are defined by ComponentRenderer #79

Closed josegulisano closed 1 year ago

josegulisano commented 1 year ago

I have several grid columns that have custom renderers Column myColumn = this.addColumn(new ComponentRenderer<>(this::createUserNumber))

These columns do not get included in the export. Is there a way to configure the exporter to include these values as part of the export?

mlopezFC commented 1 year ago

You can create a hidden column (column.setVisible(false)) that will render the values that you would like to see in the export, and configure them to be included in the report with exporter.setExportColumn(hiddenColumn, true); There is an example of this in the demo (see lastName column)

josegulisano commented 1 year ago

I missed that detail when going through the demos. Thanks for the quick response.