How Do I Show/Hide the Expand/Collapse Buttons? (Magic xpa 4.x)
|
|
Show Buttons = False
|
Show Buttons = True
|
By default, each node of a tree has a small ‘+’ or ‘-’ button next to it. Clicking on a ‘+’ will expand a node, and clicking on a ‘-’ will collapse the node.
You can turn these buttons on and off using the Show Buttons property of the Tree control.
-
Select the Tree control.
-
Go to Control Properties -> Show Buttons.
-
Set the value to True if you want the buttons, False otherwise.
Note: If Show Buttons = True, then by default leaves of the tree -- that is, the items with no sub-items -- will show up with a “+” sign when the tree first appears. If you want to avoid this, set Node Preload or Auto Expand to True.
How Do I Set the Tree Control to Display the Expand Button Only in the Relevant Nodes that Actually Have Child Nodes?
The Online and Rich Client Samples projects (program TR04 and RTR04)