Inconsistent state after calling CancelUpload

2 posts, 0 answers
  1. Tony
    Tony avatar
    2 posts
    Member since:
    Dec 2010

    Posted 24 Dec 2010 Link to this post

    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?
  2. Alex Fidanov
    Alex Fidanov avatar
    637 posts

    Posted 28 Dec 2010 Link to this post

    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.

    Alex Fidanov
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
Back to Top