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

Preventing Form Submission During File Upload

1 Answer 141 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 2
Andy asked on 21 Dec 2011, 10:27 PM
Is there a graceful way to prevent a form from being submitted while there is a file uploading via RadAsyncUpload?  I'm not fond of disabling the submit button or anything of that nature.  I'm thinking more along the lines of allowing the submit button to be clicked, and a loading panel displays until the file is finished uploading and the form is submitted.  I'm using ajax, so I need to use the AsyncUpload (otherwise I'd just use RadUpload and be done with it).  Any suggestions?

1 Answer, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 23 Dec 2011, 03:55 PM
Hello Andy,

In case you don't want to disable the Submit button, then you should implement some custom algorithm and manually submit the form only when there is no upload in progress. Please find attached a sample page implementing such approach.

Regards,
Dimitar Terziev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
AsyncUpload
Asked by
Andy
Top achievements
Rank 2
Answers by
Dimitar Terziev
Telerik team
Share this question
or