control basically has two sides - the client side UI and the server-side handler. And when you hit the Upload
button of the control, it will send a request to the server and if there isn't an RadUploadHandler
that can handle the upload, an exception will be raised and the control will display it.
You can implement your scenario and cancel the upload using the RadUpload.CancelUpload()
method but again the RadUpload
will be in the appropriate visual state - canceled upload. This is why I believe it would be better to create a custom upload control. For example you can create a ListBox
to display the list of selected items that you can select through the OpenFileDialog
However, if you want to use the RadUpload control to upload files to a SharePoint sever,you can follow this tutorial http://tv.telerik.com/watch/silverlight/video/telerik-silverlight-controls-and-sharepoint-2010-part-5
. I also attached a sample project where the approach described in the video tutorial is used. Please, note that the UploadHandler
implementation in the attached solution is different from the one demonstrated in the video tutorial. This is due to the improvements in the RadUpload
control and it is best to use the UploadHandler
implementation from the attached solution.
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>