Skip to main content
Tab

FileManagerUploadAdvancedModeSettings.EnableDragAndDrop Property

Specifies whether end-users can add files for upload by dragging them to the file container.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(true)]
public override bool EnableDragAndDrop { get; set; }

Property Value

Type Default Description
Boolean true

true, to enable drag and drop support; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to EnableDragAndDrop
FileManagerSettingsUpload
.AdvancedModeSettings .EnableDragAndDrop

Remarks

FileManager_DragDrop

Example

Web Forms (in markup):

<dx:ASPxFileManager ID="fileManager" runat="server" >
    <SettingsUpload Enabled="true" UseAdvancedUploadMode="true" >
        <AdvancedModeSettings EnableDragAndDrop="false" />
    </SettingsUpload>
    ...
</dx:ASPxFileManager>

Web Forms (in code):

ASPxFileManager fm = new ASPxFileManager();
...
fm.SettingsUpload.Enabled = true;
fm.SettingsUpload.UseAdvancedUploadMode = true;
fm.SettingsUpload.AdvancedModeSettings.EnableDragAndDrop = false;

MVC:

@Html.DevExpress().FileManager( settings => {
    settings.Name = "fileManager";
    settings.SettingsUpload.Enabled = true;
    settings.SettingsUpload.UseAdvancedUploadMode = true;
    settings.SettingsUpload.AdvancedModeSettings.EnableDragAndDrop = false;
    ...
}).BindToFolder(Model).GetHtml()
See Also