FileManagerToolbarCopyButton Class
Implements the copy button functionality.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
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
Example
In markup:
<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
Object
StateManager
CollectionItem
FileManagerToolbarItemBase
FileManagerToolbarCopyButton
See Also