RadAsyncUpload supports the following client-side events:
OnClientAdded - Occurs when a row has just been added to the RadAsyncUpload control.
OnClientFileDropped -Occurs when file(s) are dropped on some of the drop zones of RadAsyncUpload.
OnClientFilesSelected - Occurs when the files are selected immediately after pressing the "Open" button.
OnClientFileSelected - Occurs when a file is selected using the file input.
OnClientFileUploading -Occurs when a file upload has commenced.
OnClientFileUploaded - Occurs when a file has finished uploading.
OnClientFilesUploaded -Occurs when all files have finished uploading.
OnClientValidation -Occurs when a uploaded file is about to be removed from the uploaded files collection.
OnClientFileUploadRemoving - Occurs when a uploaded file is about to be removed from the uploaded files collection.
OnClientFileUploadRemoved -Occurs when a uploaded file is removed from the uploaded files collection.
OnClientValidationFailed - Occurs when a client-side validation has failed for the selected file. A file is validated onthe client by extension and/or file size.
OnClientFileUploadFailed - Occurs when a file upload has failed due to an HTTP or server-side error.
<telerik:radupload id="RadUpload1" runat="server" onclientfileuploadremoving="confirmDeletes"></telerik:radupload>
You can also assign event handlers in client-side code. When using the client-side API, pass a reference to the event handler rather than its name. One advantage of using the client-side API is that you can attach multiple event handlers to one event using the standard Microsoft AJAX convention:
Another advantage of the client-side API is that you can detach an event handler dynamically:
Note that on the client-side, the names of events are slightly different than on the server side. The following table shows the correspondence between client-side and server-side names:
|Server-Side Name||Client-SideName||Methods to add and Remove|