DxTreeView.Enabled Property

Specifies whether the DxTreeView is enabled.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll


public bool Enabled { get; set; }

Property Value

Type Description

true, if the component is enabled; otherwise, false.


When the Enabled property is set to false, the DxTreeView doesn’t respond to end-user interactions, such as mouse hovering or clicks.

<button type="button" @onclick="@(() => ToggleTreeViewEnabled())">Disable/Enable TreeView</button>

<DxTreeView Enabled="@TreeViewEnabled">

@code  {
    bool TreeViewEnabled { get; set; } = true;

    void ToggleTreeViewEnabled() { TreeViewEnabled = !TreeViewEnabled; }
See Also