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.


Yep, is actually very easy with two foreach. One to get collapsed columns and other to set collapsed columns after container changed.