How can the WebProgressBar be used to display a progressive value of an index?
I have tried setting the wpb value inside an index loop but the ASP page never updates. The wpb control resides on an Ajax UpdatePanel.
Any suggestions?
You are correct it seems, I also am using the progress bar as an indicator(for volume in my case). The only way I can get the data to refresh is using a response.redirect while passing some variables to the page. Not very sexy, but it works.
In fact, I found WebProgressBar could only be refreshed after postback of a specific page. although timers could be used to refresh page periodically, the result is not very ideal.
If you try to execute a long function, as the function would not return until the end, you can not refresh WebProgressBar as you think.
Can you show the result? I'm having the same issue.
Hello Icygod,
I have opened a support request for this forum post so we may research this behavior further. Please use the following link to log onto your account at Infragistics.Com:
<https://ko.infragistics.com/Membership/MySupport.aspx>
Once you are logged onto your account, go to My Support Activity to view the progress of this support request. An update will be sent to you in the support request with any new information we find.
Please let me know if you have any questions.
Hi,
protected void UpdProg_Click(object sender, EventArgs e) { double d = WebProgressBar1.Value;
for (double i = d; i < 10; i++) { WebProgressBar1.Value = i * 10; System.Threading.Thread.Sleep(1000); } }
I have study your sample code, but if I need to refresh the status of progress bar on ASP pages after each System.Threading.Thread.Sleep(1000);, how can i achieve this function?