When expandable is collapsed you can add/set elements to the expandable sub list and then call expand()! Check AbstractExpandableItem class, it has already utility methods for sub list.
Is it needed to call expand() so that the items are committed to the expandable? I am experiencing this exact issue. When I add subitems while expandable is collapsed, it does not get added to the sublist. But when I add the subitems while collapsed, and then call expand() the items are there. Is there a way around that I can add subitems to a collapsed expandable?
I am basically talking about this Tip in the wiki
When expandable is collapsed you can add/set elements to the expandable sub list and then call expand()! Check AbstractExpandableItem class, it has already utility methods for sub list.
Is it needed to call
expand()
so that the items are committed to the expandable? I am experiencing this exact issue. When I add subitems while expandable is collapsed, it does not get added to the sublist. But when I add the subitems while collapsed, and then callexpand()
the items are there. Is there a way around that I can add subitems to a collapsed expandable?