TreeNodeType Properties
Use
-
expanded
Specifies whether a tree node is expanded or collapsed. The binding of this property is not mandatory, however, we recommend the binding of the property to a context attribute. If this property is not bound, no tree node can be expanded or collapsed by dynamic programming. In this case, this context attribute must be contained in a context node to which the dataSource property is bound.
This property, which does not have to be bound, can be changed by the client. See Properties Used in MultiPane or TablePopin
-
hasChildren
Specifes whether a tree node can have children. If you define an onLoadChildren event handler, the corresponding tree element is displayed as a tree node by default that is, the tree element has an expansion symbol that can be used to expand or collapse the tree. If you know beforehand or during the LoadOnDemand that a tree element does not contain children, you can set the hasChildren property to false. The default value for this property is true. The tree element is then displayed as a leaf without an expansion symbol.
The hasChildren property is only evaluated if no data for children of the corresponding tree element is available. Tree elements are always displayed as tree nodes if data for their children is available.