Skip to main content
Tab

FileManagerSettingsEditing.AllowCopy Property

Gets or sets a value specifying whether an item can be copied.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.1.dll

Declaration

[DefaultValue(false)]
public virtual bool AllowCopy { get; set; }

Property Value

Type Default Description
Boolean false

true, if item copying is allowed; otherwise, false.

Property Paths

You can access this nested property as listed below:

Remarks

Use the AllowCopy property to control whether a user can copy an item.

An end-user can use the toolbar copy button or context menu Copy item (the AllowCopy property).

Toolbar Copy Button

The control display the copy button in the toolbox if the FileManagerSettingsToolbar.Items collection contains an object of the FileManagerToolbarCopyButton type. In this case, the AllowCopy property specifies the button’s availability.

When the FileManagerSettingsToolbar.Items collection is empty, the AllowCopy property specifies the copy button visibility.

Context Menu Copy Item

The control displays the copy item in the context menu if the FileManagerSettingsContextMenu.Items collection contains an object of the FileManagerToolbarCopyButton type, or if the FileManagerSettingsContextMenu.Items collection is empty. The AllowCopy property specifies the item availability.

Example

Web Forms (in markup):

<dx:ASPxFileManager ID="fileManager" runat="server" >
    <SettingsEditing AllowCreate="true" AllowDelete="true" AllowMove="true" AllowRename="true" 
    AllowCopy="true" AllowDownload="true" />    
    ...
</dx:ASPxFileManager>

Web Forms (in code):

ASPxFileManager fm = new ASPxFileManager();
...
fm.SettingsEditing.AllowCreate = true;
fm.SettingsEditing.AllowDelete = true;
fm.SettingsEditing.AllowMove = true;
fm.SettingsEditing.AllowRename = true;
fm.SettingsEditing.AllowCopy = true;
fm.SettingsEditing.AllowDownload = true;

MVC:

@Html.DevExpress().FileManager( settings => {
    settings.Name = "fileManager";
    settings.SettingsEditing.AllowCreate = true;
    settings.SettingsEditing.AllowDelete = true;
    settings.SettingsEditing.AllowMove = true;
    settings.SettingsEditing.AllowRename = true;
    settings.SettingsEditing.AllowCopy = true;
    settings.SettingsEditing.AllowDownload = true;
    ...
}).BindToFolder(Model).GetHtml()

Online Demo

See Also