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.
Hide columns in a container
Hello community,
I like to set an indexedcontainer as a datasource in a combobox.
a custom object with different properties is part of the container
cmb2Container = new IndexedContainer(liste_SpezGrund);
cbspezBetreff.setContainerDataSource(cmb2Container);
At the moment, i see all properties as one item at the combobox.
But i like to see only one item.
Maybe anyone can help me.
Thanks
is one option to go for.
You may want to set the columsn collapsible, like this:
table.setColumnCollapsingAllowed(true);
table.setColumnCollapsed(columnId, true);
// you can set individual columns non-collapsible
table.setColumnCollapsible(otherColumnId, false);
hi App Keto,
no. I have a list of many objects (Type: custom, many properties). From these list I built an indexcontainer and this container is the datasource from a combobox.
Now the combobox concatenate all properties to one String.
But I like to display one property instead of all properties.
Use
com.vaadin.ui.AbstractSelect.setItemCaptionPropertyId(Object)
method.