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

TdxBarTreeViewCombo.OnCanSelectNode Event

In This Article

Generated before setting the selected node.

#Declaration

Delphi
property OnCanSelectNode: TdxBarTreeViewComboCanSelectNodeEvent read; write;

#Remarks

This event occurs when the SelectedNode property is about to change. Write an OnCanSelectNode event handler to check if a node can be selected. The Node parameter specifies the dropdown tree node. Set CanSelect to False to prevent nodes from being selected. For example, the following code disables root node selection:

Delphi
if Node.Level = 0 then CanSelect := False;
See Also