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

RadAjaxPanel & RadScriptManager in Master Page

1 Answer 252 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
benitolopez_sistemas
Top achievements
Rank 1
benitolopez_sistemas asked on 30 Mar 2010, 07:00 AM
I have a radajaxpanel and a radscriptmanager in the master page. So all my content pages inherits them.

<body id="bodymaster" runat="server" style="background-image:url(../../img/titlebg.jpg); background-attachment:fixed"
    <form id="frm01" runat="server"
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePageMethods="true"
            <Scripts>  
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />  
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> 
            </Scripts>          
        </telerik:RadScriptManager> 
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /> 
        <telerik:RadAjaxPanel ID="radAjaxPanel01" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" ClientEvents-OnRequestStart="onRequestStart">             
            <div style="width: 100%; height:20px;top:0px; left:auto;" class="div03"
                <table class="tbl12"
                    <tr> 
                        <td width="50%" style="text-align:left"
                            <asp:Label ID="lblMessage" runat="server" CssClass="txt08r" Visible="false" EnableViewState="false" /> 
                        </td> 
                        <td width="50%" style="text-align:right"
                            <asp:Label ID="lblApp" runat="server" style="color:#FFFFFF" /> 
                            <asp:Image ID="imgApp" runat="server" ImageUrl="~/img/spacer.gif"/>&#160;&#160;<asp:Label ID="lblAppTitle" runat="server" CssClass="txt09s" />                                 
                        </td> 
                    </tr> 
                </table> 
            </div>            
            <div id="pnlContentMain01_01" name="pnlContentMain01_01" style="PADDING-RIGHT: 0px;PADDING-LEFT: 0px;PADDING-BOTTOM: 0px;OVERFLOW: auto;WIDTH: 100%;PADDING-TOP: 0px;moz-box-sizing: border-box;box-sizing: border-box">  
                <asp:contentplaceholder id="mpContentMain01_01" runat="server" />                     
            </div> 
        </telerik:RadAjaxPanel>   
    </form> 
</body> 
</html> 
 

After each callback all the contentplaceholder elements from each of the content pages are included in the callback refresh. Is it possible to have an nested radajaxpanel in the content page, so in some cases refresh just some controls inside the contentplaceholder instead of the whole content page?



1 Answer, 1 is accepted

Sort by
0
robertw102
Top achievements
Rank 1
answered on 30 Mar 2010, 02:18 PM
I'm assuming that you could have nested RadAjaxPanel controls, but I don't know if it is very practical or that it would only cause the enclosed controls to refresh and not the whole page. I think a better solution would be to use the RadAjaxManager on the master page and the RadAjaxManagerProxy control on the content pages. In that way you can choose which controls get ajaxified.

I hope that helps.
Tags
Ajax
Asked by
benitolopez_sistemas
Top achievements
Rank 1
Answers by
robertw102
Top achievements
Rank 1
Share this question
or