RadManger in initial page load

4 posts, 0 answers
  1. Waleed Seada
    Waleed Seada avatar
    241 posts
    Member since:
    May 2006

    Posted 01 Jun 2008 Link to this post

    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:
    <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
  2. Waleed Seada
    Waleed Seada avatar
    241 posts
    Member since:
    May 2006

    Posted 01 Jun 2008 Link to this post

    Hello Guys,

    I change this JS as following:

    <telerik:RadCodeBlock ID="cb1" runat="server">  
        <script type="text/javascript">  
            // Show Loading Panel in the first application initialization phase  
            window.onload = function()  
            {  
                setTimeout( function()  
                {  
                    $find("<%=RadMgr.ClientID%>").ajaxRequest("InitialPageLoad");  
                    //window[ "<%= RadMgr.ClientID %>"].AjaxRequest("InitialPageLoad");  
                }, 200);  
            }  
        </script>  
    </telerik:RadCodeBlock> 

    It works, but when the page is already there, I wanted to start as soon as the page start loading ....

    Any suggestions
    Waleed
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. newbie
    newbie avatar
    355 posts
    Member since:
    Feb 2008

    Posted 11 Jun 2008 Link to this post

    Did you find a solution to that?
    I am having a similar problem
  5. Waleed Seada
    Waleed Seada avatar
    241 posts
    Member since:
    May 2006

    Posted 12 Jun 2008 Link to this post

    Not Yet ...

    Regards,
    Waleed
Back to Top