Overview
This topic covers the specific events exposed by the RadUpload control.
The RadUpload control raises the following specific events:
-
FileUploadStarting - occurs before a file starts uploading. The event handler receives two arguments:
- The sender argument contains the RadUpload. This argument is of type object, but can be cast to the RadUpload type.
- A FileUploadStartingEventArgs object.
- The sender argument contains the RadUpload. This argument is of type object, but can be cast to the RadUpload type.
-
FileUploadFailed - occurs when the upload of a file fails. The event handler receives two arguments:
- The sender argument contains the RadUpload. This argument is of type object, but can be cast to the RadUpload type.
- A FileUploadFailedEventArgs object.
- The sender argument contains the RadUpload. This argument is of type object, but can be cast to the RadUpload type.
-
FileUploaded - occurs when the upload of a file finishes successfully. The event handler receives two arguments:
- The sender argument contains the RadUpload. This argument is of type object, but can be cast to the RadUpload type.
- A FileUploadedEventArgs object.
- The sender argument contains the RadUpload. This argument is of type object, but can be cast to the RadUpload type.
-
FileTooLarge - occurs when the selected file breaks the maximal file size limitation - the MaxFileSize value. The event handler receives two arguments:
- The sender argument contains the RadUpload. This argument is of type object, but can be cast to the RadUpload type.
- A FileEventArgs object.
- The sender argument contains the RadUpload. This argument is of type object, but can be cast to the RadUpload type.
-
FilesSelected - occurs when files have been selected from the browse dialog window. The event handler receives two arguments:
- The sender argument contains the RadUpload. This argument is of type object, but can be cast to the RadUpload type.
- A FilesSelectedEventArgs object.
- The sender argument contains the RadUpload. This argument is of type object, but can be cast to the RadUpload type.
-
FileCountExceeded - occurs only once, if the number of the selected files exceeds the MaxFileCount value. The additional files are held in the RadUpload CurrentSession.FilesOverCountCapacity collection. The event handler receives two arguments:
- The sender argument contains the RadUpload. This argument is of type object, but can be cast to the RadUpload type.
- A RoutedEventArgs object.
- The sender argument contains the RadUpload. This argument is of type object, but can be cast to the RadUpload type.
-
ProgressChanged - occurs each time when the progress of the upload changes. The event handler receives two arguments:
- The sender argument contains the RadUpload. This argument is of type object, but can be cast to the RadUpload type.
- An RoutedEventArgs object.
- The sender argument contains the RadUpload. This argument is of type object, but can be cast to the RadUpload type.
-
UploadCanceled - occurs when the upload process gets canceled. The event handler receives two arguments:
- The sender argument contains the RadUpload. This argument is of type object, but can be cast to the RadUpload type.
- An RoutedEventArgs object.
- The sender argument contains the RadUpload. This argument is of type object, but can be cast to the RadUpload type.
-
UploadFinished - occurs when all files have been processed and the upload finishes. The event handler receives two arguments:
- The sender argument contains the RadUpload. This argument is of type object, but can be cast to the RadUpload type.
- An RoutedEventArgs object.
-
UploadPaused - occurs when the upload process gets paused. The event handler receives two arguments:
- The sender argument contains the RadUpload. This argument is of type object, but can be cast to the RadUpload type.
- An RoutedEventArgs object.
- The sender argument contains the RadUpload. This argument is of type object, but can be cast to the RadUpload type.
-
UploadResumed - occurs when the upload process gets resumed. The event handler receives two arguments:
- The sender argument contains the RadUpload. This argument is of type object, but can be cast to the RadUpload type.
- An RoutedEventArgs object.
- The sender argument contains the RadUpload. This argument is of type object, but can be cast to the RadUpload type.
-
UploadSizeExceeded - occurs only once, if the total size of the selected files exceeds the maximum allowed total size - the MaxUploadSize value. The event handler receives two arguments:
- The sender argument contains the RadUpload. This argument is of type object, but can be cast to the RadUpload type.
- A RoutedEventArgs object.
-
UploadStarted - occurs when the upload process has begun. The event handler receives two arguments:
- The sender argument contains the RadUpload. This argument is of type object, but can be cast to the RadUpload type.
- An UploadStartedEventArgs object.
-
DuplicateFileName - occurs when a duplicate file name is selected. The event handler receives two arguments:
- The sender argument contains the RadUpload. This argument is of type object, but can be cast to the RadUpload type.
- An DuplicateFileNameEventArgs object.
- The sender argument contains the RadUpload. This argument is of type object, but can be cast to the RadUpload type.