Hello all,
How can I show a loading panel while the page is loading, I have found an example in the help, but doesn't work for me.
I have a masterpage with RadSplitter on it and I did the following:
RadManager settings in .aspx:
JS:
CS:
What is missing here !!
Best regards,
Waleed
How can I show a loading panel while the page is loading, I have found an example in the help, but doesn't work for me.
I have a masterpage with RadSplitter on it and I did the following:
RadManager settings in .aspx:
| <telerik:RadAjaxManager ID="RadMgr" runat="server" OnAjaxRequest="RadMgr_AjaxRequest"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="RadMgr"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="Panelcontrolholder" LoadingPanelID="LoadingPanel1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
JS:
| script type="text/javascript"> |
| // Show Loading Panel in the first application initialization phase |
| window.onload = function() |
| { |
| setTimeout( function() |
| { |
| window[ "<%= RadMgr.ClientID %>"].AjaxRequest("InitialPageLoad"); |
| }, 200); |
| } |
CS:
| protected void RadMgr_AjaxRequest(object sender,AjaxRequestEventArgs e) |
| { |
| if (e.Argument == "InitialPageLoad") |
| { |
| //simulate longer page load |
| //System.Threading.Thread.Sleep(2000); |
| MainPanel.Visible = true; |
| } |
| } |
What is missing here !!
Best regards,
Waleed