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) 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