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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Two questions regarding collapsing columns in tables
1) Is calling getVisibleColumns() and then checking isColumnCollapsed(propertyId) for each returned propertyId the only way to get which columns are actually "visible" by the user?
2) When I use a row header the collapse columns pop-up menu gets an extra empty item. If I select it, the table is redrawn (columns seem to shift) but in the end nothing has happened. I tried a few different variants to do this, but I always get same the result. How do I get rid of that extra menu item? The reason to use row headers is to give me a column that cannot be collapsed.
/Anders
1) Is calling getVisibleColumns() and then checking isColumnCollapsed(propertyId) for each returned propertyId the only way to get which columns are actually "visible" by the user?
Yep, is actually very easy with two foreach. One to get collapsed columns and other to set collapsed columns after container changed.