Skip to main content
Tab

FileManagerSettingsEditing.AllowMove Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

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

Property Value

Type Default Description
Boolean false

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

Property Paths

You can access this nested property as listed below:

Library Object Type Path to AllowMove
ASP.NET MVC Extensions FileManagerSettings
.SettingsEditing .AllowMove
ASP.NET Web Forms Controls ASPxFileManager
.SettingsEditing .AllowMove

Remarks

Use the AllowMove property to control whether an item can be moved.

An end-user can move a file manager item using the toolbar move button or context menu Move item, whose availability depends on the AllowMove property value.

Toolbar Move Button

The move button is displayed in the toolbox if the FileManagerSettingsToolbar.Items collection contains an object of the FileManagerToolbarMoveButton type. In this case, the AllowMove property specifies the button’s availability.

When the FileManagerSettingsToolbar.Items collection is empty, the AllowMove property specifies the create button visibility.

Context Menu Move Item

The move item is displayed in the context menu if the FileManagerSettingsContextMenu.Items collection contains an object of the FileManagerToolbarMoveButton type, or if the FileManagerSettingsContextMenu.Items collection is empty. The AllowMove 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

Example

The image below demonstrates the example’s file structure in the web site solution explorer and in the file manager.

ASPxFileManager_FolderPath

The code sample below demonstrates an example of the ASPxFileManager control’s markup.

<dx:ASPxFileManager ID="ASPxFileManager1" runat="server" Width="700px">
     <Settings RootFolder="~\Files\" ThumbnailFolder="~\Thumbnails\" 
          AllowedFileExtensions=".jpg, .jpeg, .gif, .rtf, .txt, .avi, .png, .mp3, .xml, .doc, .pdf" InitialFolder="Images\Employees" />
     <SettingsEditing AllowCreate="True" AllowDelete="True" AllowMove="True" AllowRename="True" />
     <SettingsPermissions>
          <AccessRules>
               <dx:FileManagerFolderAccessRule Edit="Deny" />
               <dx:FileManagerFolderAccessRule Edit="Allow" Path="Documents\Reports" />
          </AccessRules>
     </SettingsPermissions>
</dx:ASPxFileManager>
See Also