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

Inconsistent state after calling CancelUpload

1 Answer 59 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 1
Tony asked on 24 Dec 2010, 01:41 PM
My code performs a check in the UploadStarted handler and may call CancelUpload.  When it does, the progress bars and all buttons except Browse are cleared out, but the title of the control still says "Uploading...".  If you click browse again, the file dialog pops and works ok, but the Upload control doesn't do anything any more.  Am I using this incorrectly and is there a workaround?

1 Answer, 1 is accepted

Sort by
0
Alex Fidanov
Telerik team
answered on 28 Dec 2010, 08:55 AM
Hello Tony,

Which build/version of the RadUpload are you using? We made some changes around the UI related code of the control so we recommend using the Q3 release build or later. If you are using those builds, is it possible to provide us with some steps to reproduce the problem so that we can resolve it. I have tested this with our internal builds and it works correctly. However, I noticed an issue when IsAutomaticUpload is set to True and the upload is canceled in the UploadStarted event. We will resolve this for the next internal build. What I would recommend is to use the FileUploadStarting event and cancel it instead (e.Handled = true).

Thank you.

Greetings,
Alex Fidanov
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
Upload
Asked by
Tony
Top achievements
Rank 1
Answers by
Alex Fidanov
Telerik team
Share this question
or