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

RadUpload select button to perform upload

2 Answers 78 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Lex
Top achievements
Rank 1
Lex asked on 27 Dec 2010, 04:39 PM
Hello,
My page has 9 buttons as toolbar and all of them perform postback. 
When using radUpload in this page, it doesn't matter which one is clicked; file is always uploaded.

Is there any way to select which element does the uploading?

2 Answers, 1 is accepted

Sort by
0
Accepted
Cori
Top achievements
Rank 2
answered on 29 Dec 2010, 02:13 PM
Hello Lex,

Here's a help topic that shows how to clear the file upload controls, so they don't upload files when other button's are clicked.

http://www.telerik.com/help/aspnet-ajax/upload_howtopreventupload.html

It uses the RadProgressManager's OnClientSubmitting event, but you can apply the same logic to your RadToolBar's OnClientButtonClicking event with some modifications.

I hope that helps.
0
Lex
Top achievements
Rank 1
answered on 29 Dec 2010, 11:02 PM
Cori;
Thank you very much. This solves my problem.
Tags
Upload (Obsolete)
Asked by
Lex
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
Lex
Top achievements
Rank 1
Share this question
or