Skip to main content
Tab

FileManagerSettingsContextMenu.Enabled Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(true)]
public virtual bool Enabled { get; set; }

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 Web Forms Controls ASPxFileManager
ASP.NET MVC Extensions FileManagerSettings

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 (in markup):

<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