Back to Devexpress

ASPxClientUploadControl.DropZoneEnter Event

aspnet-js-aspxclientuploadcontrol-9d7c6716.md

latest2.4 KB
Original Source

ASPxClientUploadControl.DropZoneEnter Event

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

Declaration

ts
DropZoneEnter: ASPxClientEvent<ASPxClientUploadControlDropZoneEnterEventHandler<ASPxClientUploadControl>>

Event Data

The DropZoneEnter event's data class is ASPxClientUploadControlDropZoneEnterEventArgs. 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 DropZoneEnter event to perform custom actions when the mouse enters a drop zone or an external drop zone element (specified by the UploadAdvancedModeSettings.ExternalDropZoneID property) while dragging a file. To respond to leaving a drop zone, handle the ASPxClientUploadControl.DropZoneLeave event.

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

See Also

DropZoneLeave

Drag and Drop

Online Demo: Upload Control - Drag and Drop Support

ASPxClientUploadControl Class

ASPxClientUploadControl Members