TdxBarTreeViewCombo.OnCanSelectNode Event
Generated before setting the selected node.
Declaration
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:
if Node.Level = 0 then CanSelect := False;
See Also