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

Block all UI when an upload starts

1 Answer 249 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Vicenc Masanas
Top achievements
Rank 1
Vicenc Masanas asked on 19 Jun 2012, 04:45 PM
I need to block all UI in the browser while an uploading is running. In some projects I use BlockUI (http://jquery.malsup.com/block), but I'm not sure how to plug this on the radupload. Is there any event that fires on file upload start and file upload end?
I don't want to display a progress bar but instead stop all user interaction with the page until the upload is finished.

1 Answer, 1 is accepted

Sort by
0
Kevin
Top achievements
Rank 2
answered on 20 Jun 2012, 12:32 PM
Hello Vicenc,

Since the RadUpload doesn't auto-upload by itself, without the use of custom code, which in that case you would place the call in there.
So I have to assume you're using the RadAsyncUpload control, if so, you should handle the OnClientFileUploading event to block the UI and then the OnClientFileUploaded event to unblock the UI.

I hope that helps.
Tags
Upload (Obsolete)
Asked by
Vicenc Masanas
Top achievements
Rank 1
Answers by
Kevin
Top achievements
Rank 2
Share this question
or