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

FileManagerToolbarCopyButton Class

Implements the copy button functionality.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public class FileManagerToolbarCopyButton :
    FileManagerToolbarItemBase
Public Class FileManagerToolbarCopyButton
    Inherits FileManagerToolbarItemBase

Remarks

The file manager stores an FileManagerToolbarCopyButton object in the FileManagerToolbarItemCollection collection. Use the FileManagerSettingsContextMenu.Items or FileManagerSettingsToolbar.Items properties to access this collection.

Concept

Toolbar

Example

Declaratively:

<dx:ASPxFileManager ID="FileManager" ClientInstanceName="FileManager" runat="server" />
    <SettingsToolbar>
        <Items>
            <dx:FileManagerToolbarCopyButton AdaptivePriority="2" CommandName="MyCopy" />
            ...
        </Items>
    </SettingsToolbar>
</dx:ASPxFileManager>

In code:

ASPxFileManager fm = new ASPxFileManager();
...
FileManagerToolbarCopyButton copy = new FileManagerToolbarCopyButton();
copy.AdaptivePriority = 2;
copy.CommandName = "MyCopy";
fm.SettingsToolbar.Items.Add(copy);
...

MVC:

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

    FileManagerToolbarCopyButton copy = new FileManagerToolbarCopyButton();
    copy.AdaptivePriority = 2;
    copy.CommandName = "MyCopy";

    settings.SettingsToolbar.Items.Add(copy);
    ...
}).BindToFolder(Model).GetHtml()

Online Demo

Inheritance

See Also