Multiple RadProgressAreas firing

Thread is closed for posting
6 posts, 0 answers
  1. Morten
    Morten avatar
    4 posts
    Member since:
    Apr 2008

    Posted 03 Apr 2008 Link to this post

    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
  2. Sophy
    Admin
    Sophy avatar
    636 posts

    Posted 03 Apr 2008 Link to this post

    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
  3. Morten
    Morten avatar
    4 posts
    Member since:
    Apr 2008

    Posted 03 Apr 2008 Link to this post

    hi,
    all RadProgressArea's start up even if the FileUpload-field in their
    control is empty...

  4. Sophy
    Admin
    Sophy avatar
    636 posts

    Posted 03 Apr 2008 Link to this post

    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
  5. Morten
    Morten avatar
    4 posts
    Member since:
    Apr 2008

    Posted 03 Apr 2008 Link to this post

    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
  6. Sophy
    Admin
    Sophy avatar
    636 posts

    Posted 04 Apr 2008 Link to this post

    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
Back to Top