Tab
A newer version of this page is available. Switch to the current version.

FileManagerSettingsContextMenu.Enabled Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.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 Controls and MVC Extensions ASPxFileManager
HtmlEditorFileManager
RichEditFileManager
RichEditFolderManager
FileManagerSettings
MVCxFileManager
ASP.NET Bootstrap Controls BootstrapFileManager
BootstrapFileManager

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

WebForms (declaratively):

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

WebForms (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