ASPxClientFileManager.FileDownloading Event

Fires on the client side before a file download starts, and allows you to cancel the action.

Declaration

FileDownloading: ASPxClientEvent<ASPxClientFileManagerFileDownloadingEventHandler<ASPxClientFileManager>>

Event Data

The FileDownloading event handler receives an argument of the ASPxClientFileManagerFileDownloadingEventArgs type. The following properties provide information specific to this event.

Property Description
cancel Gets or sets a value indicating whether the action which raised the event, should be canceled.
file Gets a file related to the event.

Remarks

Each time a file is going to be downloaded on the client side, the FileDownloading event occurs, allowing you to cancel the action. You can use the event parameter's properties to identify a file that is being processed (ASPxClientFileManagerFileEventArgs.file).

To cancel the download operation, set the ASPxClientFileManagerFileDownloadingEventArgs.cancel property to true.

See Also