I have 5 columns in my table, and how is it possible to make one of the columns invisible? is it any standard approach for that, or maybe, can I use css for that?
How to hide column in filteringtable vaadin 7?
2k Views Asked by vlcod At
2
There are 2 best solutions below
4
On
In case you just don't want to show them at all, use setVisibleColumns on the Table:
public void setVisibleColumns(java.lang.Object... visibleColumns)Sets the array of visible column property id:s.
The columns are show in the order of their appearance in this array.
Parameters:
visibleColumns- the Array of shown property id:s.
(also setContainerDataSource) allows passing the visisible columns)
You need to allow column collapsing in your table
After that, you can collapse or hide any column
An example: