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.
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:
but if I use a dynamically created array of HeaderCells or String,
headerRow.join(cellsToBind.toArray(new HeaderCell[cellsToBind.size()]))orheaderRow.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?
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?
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?