Skip to main content

DxNavigationItemBaseComponent<TModel>.Enabled Property

Specifies whether navigation component’s item is enabled.

Namespace: DevExpress.Blazor.Base

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(true)]
[Parameter]
public virtual bool Enabled { get; set; }

Property Value

Type Default Description
Boolean true

false to disable the item; otherwise, true.

Remarks

Set the Enabled property to false to disable the navigation component’s item.

The following code snippet disables the Data Editors node. The node does not react to hover:

<div style="width: 250px">
    <DxTreeView>
      <Nodes>
        <DxTreeViewNode Name="Overview" Text="Overview" NavigateUrl="https://demos.devexpress.com/blazor/" />
        <DxTreeViewNode Enabled="false" Name="Editors" Text="Data Editors">
          <Nodes>
            <DxTreeViewNode Text="Combobox" NavigateUrl="https://demos.devexpress.com/blazor/ComboBox" />
            <DxTreeViewNode Text="Spin Edit" NavigateUrl="https://demos.devexpress.com/blazor/SpinEdit" />
          </Nodes>
        </DxTreeViewNode>
        <DxTreeViewNode Name="FormLayout" Text="Form Layout" NavigateUrl="https://demos.devexpress.com/blazor/FormLayout" BadgeText="Upd" />
        <DxTreeViewNode Name="TreeView" Text="TreeView" NavigateUrl="https://demos.devexpress.com/blazor/TreeView" BadgeText="New"  />
        <DxTreeViewNode Name="Tabs" Text="Tabs" NavigateUrl="https://demos.devexpress.com/blazor/Tabs" Visible="false" BadgeText="New" />
      </Nodes>
    </DxTreeView>
</div>

Disabled navigation component's item

See Also