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

UploadCancel event not working as expected

4 Answers 50 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Manuel Felício
Top achievements
Rank 1
Manuel Felício asked on 09 Jun 2010, 05:17 PM
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.

4 Answers, 1 is accepted

Sort by
0
Miro Miroslavov
Telerik team
answered on 14 Jun 2010, 01:37 PM
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.
0
Manuel Felício
Top achievements
Rank 1
answered on 14 Jun 2010, 03:43 PM
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.
0
Miro Miroslavov
Telerik team
answered on 15 Jun 2010, 07:53 AM
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.
0
Manuel Felício
Top achievements
Rank 1
answered on 15 Jun 2010, 09:38 AM
That's nice to know!

Thanks,

Manuel Felício.
Tags
Upload
Asked by
Manuel Felício
Top achievements
Rank 1
Answers by
Miro Miroslavov
Telerik team
Manuel Felício
Top achievements
Rank 1
Share this question
or