Multiple RadAsyncUpload with Progress Bar

1 Answer 33 Views
AsyncUpload ProgressArea
sysy
Top achievements
Rank 1
sysy asked on 04 Dec 2024, 12:04 PM

I am working with multiple RadAsyncUpload controls, and for each RadAsyncUpload, I use a RadProgressBar to track the progress of the file uploads. However, I am encountering an issue when uploading multiple files to one of the RadAsyncUpload controls. In this case, all the RadProgressArea components display unexpectedly, as shown in the screenshot below.

Can anyone help by providing sample code or advice to handle this case?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 05 Dec 2024, 11:04 AM

Hi Sysy, 

Thank you for reporting this behavior. From your description and the provided screenshot, it seems the issue occurs when multiple RadAsyncUpload controls are used on the same page, each with its own RadProgressManager and RadProgressArea. Specifically, all RadProgressArea components react to uploads, even when they are not associated with the active RadAsyncUpload.

This behavior happens because RadProgressArea components listen for progress updates globally when the multi-file selection is enabled, rather than being tightly coupled to a specific RadAsyncUpload. As a result, when a file upload is initiated, all progress areas on the page respond to the progress events.

To prevent this issue, you can simplify the setup by using a single RadProgressManager and RadProgressArea for the entire page. The updated configuration would look like this:

<telerik:RadAsyncUpload RenderMode="Lightweight" runat="server" ID="RadAsyncUpload1" MultipleFileSelection="Automatic" EnableInlineProgress="false"  />
<telerik:RadProgressManager runat="server" ID="RadProgressManager1"  />

<telerik:RadAsyncUpload RenderMode="Lightweight" runat="server" ID="RadAsyncUpload2" MultipleFileSelection="Automatic" EnableInlineProgress="false"  />
      
<telerik:RadProgressArea RenderMode="Lightweight" runat="server" ID="RadProgressArea1"   />

 

Regards,
Rumen
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources
Tags
AsyncUpload ProgressArea
Asked by
sysy
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or