Tab

FileManagerToolbarCopyButton Class

Implements the copy button functionality.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

Declaration

public class FileManagerToolbarCopyButton :
    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

See Also