Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RichEditContextMenuItemNames.InsertTableElementsMenu Field

Gets the Insert Table Elements Menu item’s name.

Namespace: DevExpress.Blazor.RichEdit

Assembly: DevExpress.Blazor.RichEdit.v24.2.dll

NuGet Package: DevExpress.Blazor.RichEdit

#Declaration

C#
public const string InsertTableElementsMenu = "InsertTableElementsMenu"

#Field Value

Type Description
String

The “InsertTableElementsMenu” string.

#Remarks

Use this property to perform the following operations with the Insert Table Elements Menu item:

The Insert Table Elements Menu item is a context menu item that contains the following sub-menu items:

Insert Table Column to the Left
The item inserts a column to the left of the selected column.
Insert Table Column to the Right
The item inserts a column to the right of the selected column.
Insert Table Row Above
The item inserts a row above the selected row.
Insert Table Row Below
The item inserts a row below the selected row.
Show Insert Cells Dialog
The item invokes the Insert Cells dialog that allows users to insert a cell, column, or row to a table.

The following code snippet removes sub-menu items from the Insert Table Elements Menu:

Razor
<DxRichEdit CustomizeContextMenu="OnCustomizeContextMenu"/>

@code {
    void OnCustomizeContextMenu(IContextMenuItemCollection items) {
        IContextMenuItem tableElementsMenu = items[RichEditContextMenuItemNames.InsertTableElementsMenu];
        if(tableElementsMenu != null)
            tableElementsMenu.Items.Clear();
    }
}
See Also