Back to Devexpress

ASPxClientUploadControl.DropZoneLeave Event

aspnet-js-aspxclientuploadcontrol-46356ac1.md

latest2.4 KB
Original Source

ASPxClientUploadControl.DropZoneLeave Event

Fires when the mouse leaves a drop zone or an external drop zone element while dragging a file.

Declaration

ts
DropZoneLeave: ASPxClientEvent<ASPxClientUploadControlDropZoneLeaveEventHandler<ASPxClientUploadControl>>

Event Data

The DropZoneLeave event's data class is ASPxClientUploadControlDropZoneLeaveEventArgs. The following properties provide information specific to this event:

PropertyDescription
dropZoneGets a drop zone object related to the processed event.

Remarks

When the UploadAdvancedModeSettings.EnableDragAndDrop property is set to true, ASPxUploadControl allows end-users to add files to upload lists by dragging them to a control.

Use the DropZoneLeave event to perform custom actions when the mouse leaves a drop zone or an external drop zone element (specified by the UploadAdvancedModeSettings.ExternalDropZoneID property) while dragging a file. To respond to entering a drop zone, handle the ASPxClientUploadControl.DropZoneEnter event.

To learn more about the drag and drop functionality of the upload control, see the Drag and Drop topic.

See Also

DropZoneEnter

Drag and Drop

Online Demo: Upload Control - Drag and Drop Support

ASPxClientUploadControl Class

ASPxClientUploadControl Members