Show RadLoadingPanel from server side

2 posts, 1 answers
  1. July
    July avatar
    205 posts
    Member since:
    Jul 2011

    Posted 26 Mar 2012 Link to this post

    I have the following scenario.

    1) Master - Cotante Page



    2) RadWindows.
    When user click on "Assume User" in menu


    RadWindows is open.


    After user click on Assume User (I closed windows and execute ajaxManager command)

    This command load Assume User in Mater/Content Page
    I need show loading panel while that code is executing.

       protected void RadAjaxManager_Request(object sender, AjaxRequestEventArgs e)
            {
               switch(e.Argument.ToLower())
               {
                   case "assume":
                       LoadSettings();
                       Response.Redirect("~/UI/DocumentsList.aspx");
                       break;

               }

            }


      private void LoadSettings()
            {


                Resources = App.GetRegistrationResources("Login");
                lblogOff.Text = Resources.GetString(lblogOff.ID, new CultureInfo(Culture));
                lblAssume.Text = Resources.GetString(lblAssume.ID, new CultureInfo(Culture));
                lnkCloseAssume.Text = Resources.GetString(lnkCloseAssume.ID, new CultureInfo(Culture));

                if (Session["AssumeUserId"] != null)
                {
    //Here: START RADLOADING PANEL
                    lblAssume.Visible = true;
                    lnkCloseAssume.Visible = true;
                    lblogOff.Visible = false;
                         LoadAssumeUser();  //here load user name
    //Here: END RADLOADING PANEL
                }else
                {
                    lblAssume.Visible = false;
                    lnkCloseAssume.Visible = false;
                    lblogOff.Visible = true;
                }


            }


    Regards


  2. Answer
    Andrey
    Admin
    Andrey avatar
    836 posts

    Posted 29 Mar 2012 Link to this post

    Hello,

    RadAjaxLoadingPanel is a control which is displayed on the client when request to the server is sent and it is hidden when the response is received.

    You could check this help topic for more information on how to show/hide explicitly the loading panel control.

    Kind regards,
    Andrey
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top