Page History
Tree Design Interface - OnItemExpanding Method
| Panel | ||
|---|---|---|
| ||
Executed when the item is expanded |
Member of Tree Design Interface (PRIM_TREE.ITreeDesign)
Parameters
Name | Type | Data Type | Description |
|---|---|---|---|
TreeItem | *Input | Reference to the expanding item |
Details
The OnItemExpanding event is fired when an item is expanded by the user.
The correspedonding ItemExpanding event will be executed.
Example
In this example, the level of the expanding item is tested to determine what sort of data to add.
Evtroutine Handling(#Tree.ItemExpanding)
Case (#Tree.CurrentItem.Level)
When (= 1)
#Com_owner.LoadSections
When (= 2)
#Com_owner.LoadEmployees
Endcase
Endroutine