How do I configure Vaadin 7 Columns in Grid Component?
For example, if I want to add a checkbox to display only specific number of columns, let us say I have twenty columns and I want to display only 3 columns…how can I do that in Vaadin 7
setHidden method only hides all those columns but is there generic way to make it more configurable …so let’s say I want to show only 3 columns out of twenty and not hide all other columns then how do I do that
You can for example use setColumns(Object... propertyIds) to set the defined columns, too. Then the missing columns from that list won’t be hidden, the will be removed - not necessarily a huge difference from the end user point of view.
Olli Tietäväinen:
You can for example use setColumns(Object... propertyIds) to set the defined columns, too. Then the missing columns from that list won’t be hidden, the will be removed - not necessarily a huge difference from the end user point of view.