Hi,
I have a WebProgressBar with a value of 0 inside a WebDialogWindow with WindowState="Hidden" by default. When I want to show the WebDialogWindow, with set_windowState, the WebProgressBar appears with a value of 100 and immediately falls to a value of 0.
Is it possible to avoid this, and directly show a value of 0?
Here is a code sample that illustrates the problem
<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <script language="javascript" type="text/javascript"> function pageLoad(sender, args) { setTimeout("showWebDialog();", 500); } </script><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title></head><body> <script language="javascript" type="text/javascript"> function showWebDialog() { $find("WebDialogWindow1").set_windowState($IG.DialogWindowState.Normal); } </script> <form id="form1" runat="server"> <ig:WebScriptManager ID="WebScriptManager1" runat="server"></ig:WebScriptManager> <div> <ig:WebDialogWindow ID="WebDialogWindow1" runat="server" Height="300px" Width="400px" WindowState="Hidden"> <ContentPane> <Template> <ig:WebProgressBar ID="WebProgressBar1" runat="server" Minimum="0" Maximum="100" Value="0"></ig:WebProgressBar> </Template> </ContentPane> </ig:WebDialogWindow> </div> </form></body></html>
Thanks for the reply, Nyx.
If you have any other questions, don't hesitate to ask.
I have just tested with Animation duration = 0. The Progressbar will still show a value of 100 during a split second, but it is now far less "shocking" for the eye.
I think that will do it :)
Thank you!
Hi Nyx,
Thank you for posting in the community.
I would suggest you to try setting AnimationDuration property of the progressbar to 0.
Let me know if this works for you.