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 - join header row columns
Hi,
I would like to build a treegrid with multiple header rows, and I need to join columns dynamically. If I use static cell propertyIds, it works well:
headerRow.join("cell_id1", "cell_id2");
but if I use a dynamically created array of HeaderCells or String,
headerRow.join(cellsToBind.toArray(new HeaderCell[cellsToBind.size()]))
or
headerRow.join(cellIdsToBind.toArray(new String[cellIdsToBind.size()]))
it goes crazy...
Can anyone say me, what's wrong or is it maybe a bug? Is there anywhere a sample code?
Thanks.
Hi,
It works for me. I have a project where I join quite a few columns dynamically. I'm using property ids, but joining with HeaderCells should work equally well. Check if your array is OK?
-Olli
Hi,
thanks for your reply. Yes, I checked my arrays, but everything looks good. I don't understand what I'm doing wrong :(
Can u post a small sample code?