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.
TreeGrid header row columns with same names
Hi,
I would like to build a treegrid with multiple header rows, and I need to use some header row columns with the same name in a row. I try to use a HierarchicalContainer and the following code:
...
for (...) {
addContainerProperty(column, String.class, "");
}
...
, but in the IndexedContainer has:
public boolean addContainerProperty(Object propertyId, Class<?> type, Object defaultValue) {
...
// Fails if the Property is already present
if (propertyIds.contains(propertyId)) {
return false;
}
...
}
Any idea, how can I do that?
Thanks
Hi,
Use unique property values, just add different texts to the header cells.
-Olli