TcxCustomVirtualTreeList.OnGetChildCount Event
Enables you to control the number of child nodes for loading.
Declaration
property OnGetChildCount: TcxVirtualTreeListGetChildCountEvent read; write;
Remarks
Handle the OnGetChildCount event to load only the specified number of children for certain parent nodes.
This event is used if both of the following conditions are met:
The TcxTreeListCustomDataSource‘s descendant is not implemented.
The smart load feature is enabled.
Implementation of the event handler is an alternative way of overriding the TcxTreeListCustomDataSource‘s GetChildCount method, and is applicable if the built-in TcxTreeListCustomDataSource is used (see the Introduction To Provider Mode help topic).
Sender specifies the tree list.
AParentNode specifies the node whose children are to be loaded.
ACount specifies the number of children to load.
See Also