Tab

FileManagerSettingsContextMenu.Enabled Property

Gets or sets a value that indicates whether a context menu is enabled.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

Declaration

[DefaultValue(true)]
public virtual bool Enabled { get; set; }
<DefaultValue(True)>
Public Overridable Property Enabled As Boolean

Property Value

Type Default Description
Boolean

true

true, if the context menu functionality is enabled; otherwise, false.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to Enabled
ASP.NET Bootstrap Controls BootstrapFileManager
BootstrapFileManager
ASP.NET Web Forms Controls ASPxFileManager
HtmlEditorFileManager
RichEditFileManager
RichEditFolderManager
ASP.NET MVC Extensions FileManagerSettings
MVCxFileManager

Remarks

Set the Enabled property to true to enable the context menu. Use the FileManagerSettingsContextMenu.Items property to customize the context menu items. If the item collection is empty, the context menu displays default items.

Use the ASPxFileManager.StylesContextMenu property to customize the context menu appearance.

Concept

ASPxFileManager_ContextMenu

Example

Web Forms (declaratively):

<dx:ASPxFileManager ID="FileManager" ClientInstanceName="FileManager" runat="server" >    
    <SettingsContextMenu Enabled="false">
        <Items>
            ...
        </Items>
    </SettingsContextMenu>
    ...
</dx:ASPxFileManager>

Web Forms (in code):

ASPxFileManager fm = new ASPxFileManager();
FileManager.SettingsContextMenu.Enabled = false;
...

MVC:

@Html.DevExpress().FileManager( settings => {
    settings.Name = "fileManager";

    settings.SettingsContextMenu.Enabled = false;
    ...
}).BindToFolder(Model).GetHtml()

Online Demo

See Also