This is a migrated thread and some comments may be shown as answers.

Show RadLoadingPanel from server side

1 Answer 223 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
July
Top achievements
Rank 2
July asked on 26 Mar 2012, 02:31 PM
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


1 Answer, 1 is accepted

Sort by
0
Accepted
Andrey
Telerik team
answered on 29 Mar 2012, 09:58 AM
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.
Tags
Ajax
Asked by
July
Top achievements
Rank 2
Answers by
Andrey
Telerik team
Share this question
or