Skip to main content

DxContextMenuItem.BeginGroup Property

Specifies whether an item is the start of a new item group.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v22.2.dll

NuGet Package: DevExpress.Blazor


public bool BeginGroup { get; set; }

Property Value

Type Default Description
Boolean false

true if an item is the start of a new item group; otherwise, false.


You can split context menu items into groups. A horizontal line separates groups.

ContextMenu Item Groups

        <DxContextMenuItem Text="Sort By" IconUrl="images/Sort_by.svg">
                <DxContextMenuItem Text="Name"></DxContextMenuItem>
                <DxContextMenuItem Text="Size"></DxContextMenuItem>
                <DxContextMenuItem Text="Type"></DxContextMenuItem>
        <DxContextMenuItem Text="Copy" IconUrl="images/Copy.svg" BeginGroup="true"></DxContextMenuItem>
        <DxContextMenuItem Text="Cut" IconUrl="images/Cut.svg"></DxContextMenuItem>
        <DxContextMenuItem Text="Remove" IconUrl="images/Clear.svg"></DxContextMenuItem>
        <DxContextMenuItem Text="Select All" BeginGroup="true"></DxContextMenuItem>

ContextMenu Items

Run Demo: Context Menu

See Also