DxMenuItem.Enabled Property

Specifies whether the menu item is enabled.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v20.2.dll

Declaration

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

Property Value

Type Default Description
Boolean

true

true if the item is enabled; otherwise, false.

Remarks

Set the Enabled to false to disable the menu item.

<div class="card w-auto">
    <DxMenu>
        <Items>
            <DxMenuItem Text="Products" IconCssClass="oi oi-layers">
                <Items>
                    <DxMenuItem Text="Subscriptions / Packs" />
                    <DxMenuItem Text=".NET Windows Forms Components" />
                    <DxMenuItem Text="Reporting / Printing Suites" />
                    <DxMenuItem Text="VCL Components and Tools" />
                    <DxMenuItem Text="ASP.NET Components" Enabled="false" />
                </Items>
            </DxMenuItem>
        </Items>
    </DxMenu>
</div>

Disabled Menu Item

See Also