| Visual Basic (Declaration) | |
|---|---|
Public Property ShowExpansionIndicator As ShowExpansionIndicator | |
| C# | |
|---|---|
public ShowExpansionIndicator ShowExpansionIndicator {get; set;} | |
This property determines when a node will display an expansion indicator.
When set to the Default or CheckOnLoad, nodes will automatically determine whether an expansion indicator is necessary based on whether or not there are child nodes.
To load nodes "on demand", use the CheckOnExpand setting. With this setting, the node will show an expansion indicator until the first time it is expanded. At that time, the UltraTree.BeforeExpand event will fire. If the event completes successfully and is not cancelled, then the node will determine if any child nodes were added. If child nodes were added, the node will expand normally and show an expansion indicator. If no children were added, the expansion indicator will disappear and the node will not expand.
To restore the expansion indicator of a node once it has disappeared, use the UltraTree.ResetExpansionIndicator method of the UltraTree.
When loading nodes on demand, it is generally recommended to also set NodeDoubleClickAction to ToggleExpansionWhenExpansionIndicatorVisible.
| Visual Basic | Copy Code |
|---|---|
Imports Infragistics.Win | |
| C# | Copy Code |
|---|---|
using Infragistics.Win; | |
