Skip to main content
Tab

ASPxFileManager.SettingsContextMenu Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.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. The context menu displays default items if the item collection is empty.

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

ASPxFileManager_ContextMenu

Concept

Example

In markup:

<dx:ASPxFileManager ID="FileManager" ClientInstanceName="FileManager" runat="server" >    
    <SettingsContextMenu Enabled="true">
        <Items>
            <dx:FileManagerToolbarMoveButton />
            <dx:FileManagerToolbarCustomButton Text="Properties" CommandName="Properties" BeginGroup="true">
                <Image IconID="setup_properties_16x16" />
            </dx:FileManagerToolbarCustomButton>
        </Items>
    </SettingsContextMenu>
    ...
</dx:ASPxFileManager>

In code:

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

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

FileManager.SettingsContextMenu.Items.Add(moveButton);
FileManager.SettingsContextMenu.Items.Add(customButton);
...

Online Demo

See Also