Hello,
Here is my trouble :
I've got a master page (called PODMaster.master) which contains RadAjaxManagerProxy and a contentplaceholder as described below :
Then, the application loads an ascx control (called wucPOD.ascx) which contains different html tables and a contentplaceholder :
This ascx controls loads dynamically user controls called modules.
A module is an ascx control which contains a label, a placeholder for actions buttons, and a content placeholder.
For example, imagine that I've 2 controls loaded by wucPOD.ascx in my page : controlA and controlB.
The controlA contains a RadGrid 'GrilleRetards' and the RadGrid contains action button.
The controlB contains a RadGrid 'GrillePrets'.
So what I'd like to do is when I click on the button in the RadGrid of the controlA, the RadGrid in the controlB is updated, and the 2 controls are ajaxified, of course.
What could be the best approch to perform this ?
Note that I've already done that with a RadAjaxManagerProxy on controlA and controlB.
In the controlA, on load, i've added AjaxSetting like this :
and on the command evenement :
But as you see, i saved the module controlB in a session variable to allow refreshing it.
And I think it's not the best approach.
I supose that I need a RadAlaxManagerProxy on the main user control wucPOD, and register each ajaxsetting in child modules (for example controlA) but I'm not sure.
And more, some modules are not ajaxified and need redirections.
So could you please tell me how I could do that ?
Thanks for your answer
Yann
Here is my trouble :
I've got a master page (called PODMaster.master) which contains RadAjaxManagerProxy and a contentplaceholder as described below :
| <form id="Form1" method="post" runat="server"> |
| <asp:ScriptManager ID="ScriptManager1" runat="server"> |
| </asp:ScriptManager> |
| <telerik:RadAjaxManager ID="AjaxManager1" runat="server" EnableAJAX=true> |
| </telerik:RadAjaxManager> |
| <telerik:RadWindowManager Behavior=None ReloadOnShow=true Modal=true InitialBehavior=None VisibleStatusbar=false VisibleTitlebar=false id="Singleton" Skin="Default" runat="server"> |
| </telerik:RadWindowManager> |
| <div> |
| <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"> |
| </asp:ContentPlaceHolder> |
| </div> |
| </form> |
Then, the application loads an ascx control (called wucPOD.ascx) which contains different html tables and a contentplaceholder :
| <asp:PlaceHolder ID="ContenuPage" Runat="server"></asp:PlaceHolder> |
This ascx controls loads dynamically user controls called modules.
A module is an ascx control which contains a label, a placeholder for actions buttons, and a content placeholder.
For example, imagine that I've 2 controls loaded by wucPOD.ascx in my page : controlA and controlB.
The controlA contains a RadGrid 'GrilleRetards' and the RadGrid contains action button.
The controlB contains a RadGrid 'GrillePrets'.
So what I'd like to do is when I click on the button in the RadGrid of the controlA, the RadGrid in the controlB is updated, and the 2 controls are ajaxified, of course.
What could be the best approch to perform this ?
Note that I've already done that with a RadAjaxManagerProxy on controlA and controlB.
In the controlA, on load, i've added AjaxSetting like this :
| If Not IsNothing(SessionsProfil.getModule_Pret()) Then |
| AjaxManagerProxyRetards.AjaxSettings.AddAjaxSetting(GrilleRetards, SessionsProfil.getModule_Pret()) |
| End If |
and on the command evenement :
| If Not IsNothing(SessionsProfil.getModule_Pret()) Then |
| SessionsProfil.getModule_Pret().Refresh() |
| End If |
But as you see, i saved the module controlB in a session variable to allow refreshing it.
And I think it's not the best approach.
I supose that I need a RadAlaxManagerProxy on the main user control wucPOD, and register each ajaxsetting in child modules (for example controlA) but I'm not sure.
And more, some modules are not ajaxified and need redirections.
So could you please tell me how I could do that ?
Thanks for your answer
Yann