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

Is there a way to determine if an upload has started in client code?

3 Answers 33 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 11 Nov 2008, 10:10 PM
This is for RadControls for ASP.NET AJAX Q3 2008.

I need to determine, in Javascript, if an upload is currently being processed.  Is there a method to accomplish this easily?

Thanks,

David

3 Answers, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 12 Nov 2008, 08:46 AM
Hi David,

Yes, you can. Just add a handler to the OnClientProgressStarted client-side event of RadProgressManager.

Kind regards,
Erjan Gavalji
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
David
Top achievements
Rank 1
answered on 13 Nov 2008, 02:42 PM
I seem to not have made myself clear.

I have some "background" javascript code that needs to handle processing differently if an upload is in process on the page or not.  As this code needs to make Ajax calls, I do not want it to do so while an upload is running.  So, what I need is an indicator that the upload is in process or not.

If there is no "indicator", then I can use the OnClientProcessingStarted event to set one, but then I will need to clear it in another event also.  Is there an equivalant OnClientProcessingCompleted event?  I did not see one in the documentation.

David
0
Erjan Gavalji
Telerik team
answered on 14 Nov 2008, 02:58 PM
Hi David,

No, there is not an intrinsic method in RadUpload because the form submission is actually done by some other element. You could use the OnClientClick property of the submit button though.

Regards,
Erjan Gavalji
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Upload (Obsolete)
Asked by
David
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
David
Top achievements
Rank 1
Share this question
or