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

[Solved] LoadingPanel in complex scenario

1 Answer 137 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 2
Richard asked on 14 May 2009, 08:06 PM
Hi folks,

I'm not able to get the loading panel to display in the following scenario.  Does anyone have any recommendations?

We have a MasterPage with a UserControl on it.  The UserControl contains a RadTreeView.
On a ContentPage, we have another UserControl which contains a custom grid class (which inherits from RadGrid). 

When the user clicks on the RadTreeView.Node in the one UserControl, we want the loading panel to display over the UserControl containing the custom grid class.

Here's how we have it wired up:
MasterPage has RadAjaxManager, RadLoadingPanel and RadScriptManger
UserControl with RadTreeView has RadAjaxManagerProxy
UserControl with Custom Grid Class has RadAjaxManagerProxy

In the Page_Load event on the UserControl with the custom grid class, we have the following code: 

 

 
        void Page_Load(object sender, EventArgs e)  
        {  
              NavTree1 = this.Page.Master.FindControl("NavTree1"as NavigationTree;  
            RadAjaxManagerProxy1.AjaxSettings.AddAjaxSetting(NavTree1, this.CustomGridObject);  
             
        }  
 

 

 

 

 

Ajax is fired properly, but the loading panel will not display.
 

1 Answer, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 2
answered on 15 May 2009, 07:09 PM

Here is the original problem and solution.  We hope it helps someone.

// SCENARIO:  
// MasterPage: contains a custom user control that contains a RadControl,  
// ContentPage: contains a custom user control that contains a RadControl  
//   
// GOAL:  
// The user interacts with the RadControl in the user control on the Master  
// page, which updates a RadControl in the user control on the Content page.  
//  
// NOTE: This code is placed in the code-behind of the USER CONTROL which is  
// placed on the Content page!  
 
//First get a reference to the Master Page  
MyCustomControl CustomControlOnMasterPage = this.Page.Master.FindControl("CustomControlOnMasterPage"as MyCustomControl;  
 
//Then get a reference to the RadControl in the custom control  
RadTreeView NavTreeView1 = CustomControlOnMasterPage.FindControl("RadTreeView1"as RadTreeView;  
 
// Now hook up the proxy manager to allow the RadControl in the  
// custom control on the Master page to update the RadControl in  
// the custom control on the Content page.  
RadAjaxManagerProxy1.AjaxSettings.AddAjaxSetting(NavTreeView1, this.CustomControlOnContentPage);  
 

Tags
Ajax
Asked by
Richard
Top achievements
Rank 2
Answers by
Richard
Top achievements
Rank 2
Share this question
or