Skip to main content

FileManagerSettings.SettingsContextMenu Property

Provides access to the file manager’s context menu settings.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.2.dll

Declaration

public FileManagerSettingsContextMenu SettingsContextMenu { get; }

Property Value

Type Description
FileManagerSettingsContextMenu

A FileManagerSettingsContextMenu object that contains context menu settings.

Remarks

The file manager provides the context menu if the FileManagerSettingsContextMenu.Enabled property is set to true. Use the FileManagerSettingsContextMenu.Items property to customize the context menu items. If the item collection is empty, the context menu displays default items.

ASPxFileManager_ContextMenu

Example

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

    FileManagerToolbarMoveButton moveButton = new FileManagerToolbarMoveButton();
    moveButton.BeginGroup = false;

    FileManagerToolbarCustomButton customButton = new FileManagerToolbarCustomButton();
    customButton.CommandName = "Properties";
    customButton.BeginGroup = true;
    customButton.Image.IconID = "setup_properties_16x16";

    settings.SettingsContextMenu.Items.Add(moveButton);
    settings.SettingsContextMenu.Items.Add(customButton);
    ...
}).BindToFolder(Model).GetHtml()

Online Demo

See Also