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