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

Multiple RadProgressAreas firing

5 Answers 145 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Morten
Top achievements
Rank 1
Morten asked on 03 Apr 2008, 07:20 AM
Hi,
I have a asp:FileUpload and RadProgressArea in a user control, which is implemented multiple times on a page.

When I try to upload a file from any of the FileUpload's every RadProgressArea on the page fires....is there any way to "connect" each RadProgressArea to it's FileUpload or otherwise stop multiple Area's to appear?

sincerely,
Morten

5 Answers, 1 is accepted

Sort by
0
Sophy
Telerik team
answered on 03 Apr 2008, 09:08 AM
Hello Morten,

RadProgressArea measures the progressing of the whole page. This is a limitation which is result of the way HTTP protocol works. Therefore, if there are several RadUploads on the page and there are selected files in some of them all progress bars will display the uploading progress of all uploading controls.

You can make the progress bars only of the upload controls which have selected files for upload appear. However, all RadProgressAreas will display the same information as they will show the progress of the whole page.

If you have other questions, do contact us again.

Best wishes,
Sophy
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Morten
Top achievements
Rank 1
answered on 03 Apr 2008, 12:34 PM
hi,
all RadProgressArea's start up even if the FileUpload-field in their
control is empty...

0
Sophy
Telerik team
answered on 03 Apr 2008, 01:14 PM
Hi Morten,

As I mentioned in my previous reply each RadProgressArea on the page monitors the progressing of 
the whole page. If there is at least one selected file for uploading in any of the upload controls all progress areas will appear and will measure the progress of the selected files. If there is no selected files in any of the upload controls on the page no one of the progress areas will appear. 

If you want to make appear only the progress areas of the upload controls in which there are selected files you should write custom code. However, in this case the progress areas which will appear will measure the progress not only of the files selected in the corresponding upload control, but of the whole page.

All the best,
Sophy
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Morten
Top achievements
Rank 1
answered on 03 Apr 2008, 01:18 PM
ok, thanks for your quick response!

Have you got any pointers for me towards writing that custom code?
Is there an event that fires when RadProgressArea starts which I can use to check for file existence?

Regards,
Morten
0
Sophy
Telerik team
answered on 04 Apr 2008, 12:58 PM
Hello Morten,

To achieve the desired functionality I could suggest you place each of the progress areas in a div element, for example, and in case the corresponding upload control does not contain files for uploading set the display property of the div element to 'none'. I could suggest you choose one of the following events to do the check for file existence:
  1. Use the OnClientProgressStarted client event of the RadProgressManager to check for file existence in each upload control and hide some of the progress areas if needed.
  2. Use the OnClientProgressUpdating client event of the RadProgressArea to check for file existence in the upload which is logically associated to this progress area. Please, note that in this case the file existence check will be done many times which is not very effective.
Let me know if you need further assistance.

Best regards,
Sophy
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Upload (Obsolete)
Asked by
Morten
Top achievements
Rank 1
Answers by
Sophy
Telerik team
Morten
Top achievements
Rank 1
Share this question
or