DxTreeViewBase.NodeExpandCollapseAction Property

Specifies user actions that expand or collapse a node.

Namespace: DevExpress.Blazor.Base

Assembly: DevExpress.Blazor.dll

Declaration

[Parameter]
public TreeViewNodeExpandCollapseAction NodeExpandCollapseAction { get; set; }

Property Value

Type Description
TreeViewNodeExpandCollapseAction

Specifies user actions.

Remarks

To expand/collapse a TreeView node, users should click the node or its Expand/Collapse button. If node selection is enabled, users should double-click nodes or click the Expand/Collapse buttons.

Blazor-TreeView-Expand-Collapse-Buttons

Use the NodeExpandCollapseAction property to change these user actions. For instance, the following example demonstrates how to expand/collapse nodes when users click the Expand/Collapse buttons:

<DxTreeView NodeExpandCollapseAction="TreeViewNodeExpandCollapseAction.ButtonClick" ...> 
    ... 
</DxTreeView> 
See Also