I have an AdvancedDataGrid with HierarchicalData that will be loaded lazily. Initialy, the tree displays only the parent nodes. Since the nodes' children are not loaded yet, no disclosure icons are rendered. Is there a way to force the tree to also render the disclosure icon for empty nodes, so that I can load a node's children when it is expanded?
I have tried looking at TreeDataDescriptors, but AdvancedDataGrid or HierarchicalData don't seem to support this.
I also looked into extending AdvancedDataGridGroupItemRenderer, but fail to see where I can put logic to render the disclosure icon.
Any help would be much appreciated.
Create your own HierarchicalData (or extend from the existing one) and implement the canHaveChildren() method.
Thanks, a case of missing the obvious
Extending HierarchicalData and overriding canHaveChildren and hasChildren worked.