RadAjaxPanel & RadScriptManager in Master Page

2 posts, 0 answers
  1. benitolopez_sistemas
    benitolopez_sistemas avatar
    25 posts
    Member since:
    Jan 2007

    Posted 30 Mar 2010 Link to this post

    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"
                    <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" /> 
            <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"
                            <td width="50%" style="text-align:left"
                                <asp:Label ID="lblMessage" runat="server" CssClass="txt08r" Visible="false" EnableViewState="false" /> 
                            <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" />                                 
                <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" />                     

    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?

  2. robertw102
    robertw102 avatar
    265 posts
    Member since:
    Jul 2007

    Posted 30 Mar 2010 Link to this post

    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top