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?
I have put together a sample to show how to update the WebProgressBar from either the client or the server. Please review to see if this meets your criteria. Otherwise, please provide me with the following details:
Please explain what index you are talking about. Is this in reference to databinding to the Grid or are you trying to implement some other logic?
Can you provide me with more information on what index is and what you what to achieve with the WebProgressBar.
Please let me know if you have any questions.
Thanks,
Valerie
Hi,
I am checking to see if you were able to resolve your issue.
Please let me know if you have any other questions,
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://www.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.
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?