Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 1 month ago
How to get collapsed columns in Table?
Hello!, One question, how to get collapsed columns in table?
Now i get all table colums:
String[] tableHeaders = table.getColumnHeaders();
Row row = sheet.createRow(0);
for(int i=0;i<tableHeaders.length;i++){
String headerItem = tableHeaders[i];
System.out.print("\n"+headerItem);
Cell cell = row.createCell(i);
cell.setCellType(CellType.STRING);
cell.setCellValue(headerItem);
cell.setCellStyle(style);
sheet.autoSizeColumn(i);
}
But i need get all active colums, with out collapsed
Last updated on
Hi,
I think you'll need to ask
table.isColumnCollapsed(propertyId)
for each property / column.
-Olli
Last updated on
You cannot reply to this thread.