Skip to main content
All docs
V25.2
  • IContextMenuItem.BeginGroup Property

    Specifies whether to display the group separator before the item.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.2.dll

    Declaration

    bool BeginGroup { get; set; }

    Property Value

    Type Description
    Boolean

    true to display the group separator before the item; otherwise, false.

    Remarks

    Rich Text Editor, Grid, and TreeList allow you to split context menu items into groups. A horizontal line separates groups. To start a new group, set the BeginGroup property to true.

    <DxRichEdit CustomizeContextMenu=CustomizeContextMenu />
    
    @code {
        void CustomizeContextMenu(IContextMenuItemCollection items) {
            var clipboardItem = items.AddCustomItem("Clipboard");
            clipboardItem.BeginGroup = true;
            clipboardItem.Items.Add(RichEditContextMenuItemNames.CutSelection);
            clipboardItem.Items.Add(RichEditContextMenuItemNames.CopySelection);
            clipboardItem.Items.Add(RichEditContextMenuItemNames.Paste);
        }
    }
    

    Refer to CustomizeContextMenu event descriptions for additional information and examples:

    See Also