Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomTreeView.OnExpanding Event

In This Article

Allows you to prohibit users from expanding a node.

#Declaration

Delphi
property OnExpanding: TdxTreeViewNodeAllowEvent read; write;

#Remarks

This event occurs every time a tree node is about to be expanded. Assign False to the Allow parameter in an OnExpanding event handler to prohibit Tree View node expansion.

You can handle the OnExpanded event to respond to node expand operations.

Note

You can handle the control’s OnCollapsing and OnCollapsed events to track and customize node collapse operations.

Refer to the TdxTreeViewNodeAllowEvent type description for information on available options.

See Also