For Vaadin 7 and Table
, it does not ignore or hide collapsed columns. Is that on purpose? It only looks at “visible” columns from table.getVisibleColumns()
. You can also see this if users reorder the columns on the frontend - the exporter does not export the same columns and order that are in the table on the frontend. Am I maybe doing something wrong?
I think I have the same problems with Vaadin 7 Grid
, but I cannot remember right now.
I suppose I could get around this by making a different array of “visible columns” that hides the columns I don’t want to be visible and then call export.setVisibleColumns(reducedColumns)
. This doesn’t help with Vaadin 7 Tables, which let you reorder the columns, but that is a separate issue.
Sadly, I have not tried it in Vaadin 8 or Vaadin 10+ - no such apps right now. That said, eventhough the API is different, I suspect some of the basic principles can be applied here that can be applied in Vaadin 7.