Skip to main content
A newer version of this page is available. .

ASPxHtmlEditorSettings.AllowContextMenu Property

Gets or sets a value that specifies whether the editor’s specific context menu is available to end-users in design view and html view.

Namespace: DevExpress.Web.ASPxHtmlEditor

Assembly: DevExpress.Web.ASPxHtmlEditor.v21.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(DefaultBoolean.True)]
public DefaultBoolean AllowContextMenu { get; set; }

Property Value

Type Default Description
DefaultBoolean True

One of the DefaultBoolean enumeration settings.

Available values:

Name Description
True

true. DefaultBoolean.True has a constant value of 0, while the standard true value corresponds to a value of 1. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

False

false. DefaultBoolean.False has a constant value of 1, while the standard false value corresponds to a value of 0. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

Default

The default behavior determined by the control’s logic.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to AllowContextMenu
ASP.NET MVC Extensions HtmlEditorSettings
.Settings .AllowContextMenu
ASP.NET Web Forms Controls ASPxHtmlEditor
.Settings .AllowContextMenu

Remarks

Options include:

Setting Description
True Context menu (ASPxPopupMenu) is enabled within the ASPxHtmlEditor.
False Context menu is disabled within the ASPxHtmlEditor.
Default A browser’s context menu is used for the ASPxHtmlEditor.

The following code snippets demonstrate how to customize the AllowContextMenu property’s value.

ASPxHtmlEditor1.Settings.AllowContextMenu = false;

Note

If the AllowContextMenu property is set to DefaultBoolean.False, the context menu is not invoked via a right click within the ASPxHtmlEditor’s Design View Area. In this instance, end-users are allowed to modify the editor’s content using only visual UI elements (such as Toolbar Items).

See Also