This is a migrated thread and some comments may be shown as answers.

Porting RadUpload to RadCloudUpload

2 Answers 117 Views
CloudUpload
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 2
Iron
Veteran
Iron
Richard asked on 19 May 2016, 09:00 AM

I'm working on porting a Silverlight project to WPF, both projects use the telerik controls which has made it surprisingly easy (thank you).

However, I'm now trying to port an upload page that uses the Silverlight RadUpload control to the WPF RadCloudUpload and I'm not sure where to start. The target of the upload is an asp.net website; do you have any examples of wiring up RadCloudUpload to asp.Net using something like the RadUploadHandler target that RadUpload uses? 

Thanks,

Richard

2 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 23 May 2016, 04:16 PM
Hi Richard,

RadCloudUpload for WPF is not quite different then the RadUpload for Silverlight control. This is why there is no straight forward approach for migrating between the controls. Also, there is no an example as the one you are asking for. 

RadCloudUpload works with storage providers. In order to work with the control and your custom storage service you will need to implement a custom provider that posts and gets request to the service. In order to get started with the cloud upload control I suggest you to read its documentation and see its First Look demo which demonstrates how to create a custom provider.

Regards,
Martin
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
 
0
Richard
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 24 May 2016, 10:06 PM
Hi Martin,

Thank you for your reply, I looked at your links and at the SDK examples. To be honest it looked more complicated than I needed.
In the end I used the WebClient class to upload the file to my Asp.Net site. It had everything I needed including an async method and progress state that allowed me to wire it up to a progress bar and recreate the RadUpload functionality I was looking for. 

For anyone else looking to do this here is a working example from Microsoft.

https://msdn.microsoft.com/en-us/library/36s52zhs(v=vs.110).aspx

Thanks,
Richard
Tags
CloudUpload
Asked by
Richard
Top achievements
Rank 2
Iron
Veteran
Iron
Answers by
Martin Ivanov
Telerik team
Richard
Top achievements
Rank 2
Iron
Veteran
Iron
Share this question
or