UploadCancel event not working as expected

5 posts, 0 answers
  1. Manuel Felício
    Manuel Felício avatar
    64 posts
    Member since:
    Oct 2009

    Posted 09 Jun 2010 Link to this post

    Hi,

    I was expecting that pressing the cancel button on RadUpload control would fire the UploadCancel event, either if the file has or hasn't been uploaded yet. Whats happening is that it only fires the event if the file is BEING uploaded.

    I need to know when a user selects a file to upload and I need to know if he presses the cancel button, because no file would be selected. Note that I am using MVVM and I need to control whats happening in my viewmodel because I've got other Bindings that are not working because I'm not properly handling the cancel event.

    Can someone help me on this?

    Thanks,
    MF.
  2. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 14 Jun 2010 Link to this post

    Hello Manuel Felício,

    Currently this behavior is by design. Is it going to be better for you, if we remove the "Cancel" button after finishing the upload? Canceling after finish means only to clear the state (mainly the UI state), we don't have any server side logic for removing files or etc. If you also need some features, we will be happy to hear from you.

    Greetings,
    Miro Miroslavov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft banner
  4. Manuel Felício
    Manuel Felício avatar
    64 posts
    Member since:
    Oct 2009

    Posted 14 Jun 2010 Link to this post

    No, the cancel button after uploading is still fine and makes sense. What doesn't make sense is that I dont get notified if the user pressed the cancel button, or at least, that no file is selected on the UI.

    If Cancel clears the state, it will clear the selected items, so if there's a way I can be notified that the selected items have been cleared, that would solve my problem.

    Thanks.
  5. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 15 Jun 2010 Link to this post

    Hello Manuel Felício,

    It will be clearer if Cancel event is raised even after uploading has finished. I've created work item for this and should be fixed soon.
    Thank you.

    Greetings,
    Miro Miroslavov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  6. Manuel Felício
    Manuel Felício avatar
    64 posts
    Member since:
    Oct 2009

    Posted 15 Jun 2010 Link to this post

    That's nice to know!

    Thanks,

    Manuel Felício.
Back to Top
DevCraft banner