Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

List - ItemExpanding Event

Panel
bgColor#2c3c4c

An item in the list is expanding

Member of of List (PRIM_MD.List)

Parameters

Name

Type

Data Type

Description

Item

*Input

PRIM_TREE.TreeItem

Reference to the item

Details

The ItemExpanding event is fired when an item is expanded by the user. 

It is typically used as a trigger to load additional child data.

Example

In this example, the level of the expanding item is tested to determine what sort of data to add. 

     Evtroutine Handling(#List.ItemExpanding)

...


 
        Case (#List.CurrentItem.Level)

...


        When (= 1)

...


           #Com_owner.LoadSections

...


 
        When (= 2)

...


           #Com_owner.LoadEmployees

...


 
        Endcase
 
     Endroutine

See also

All Component Classes

Technical Reference