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

RadScriptManager in masterpage, RadAjaxPanel in content page, update in masterpage panel

4 Answers 371 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Phil
Top achievements
Rank 2
Phil asked on 10 Aug 2011, 06:38 PM
Hi:
I have masterpage with a RadScriptManager and a asp:panel (panel used for messages).  In my one of my content pages, I have a RadAjaxPanel.  In my code behind, I am updating the panel pnlErrors.  Sometime the changes to pnlErrors does not display.  Any suggestions?

<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
    <title></title>
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="masterPageRadScriptManager" runat="server" AsyncPostBackTimeout="180" >
        <Scripts>
            <asp:ScriptReference Path="Scripts/jquery-1.4.1.js" />
        </Scripts>
    </telerik:RadScriptManager>
    ...
    <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="False" />
    <telerik:RadMenu ID="RadMenu1" Runat="server" DataSourceID="SiteMapDataSource1" Width="100%" style="z-index:2900">
        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
    </telerik:RadMenu>
    ...
    <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
 
    </asp:ContentPlaceHolder>
    <asp:Panel ID="pnlErrors" runat="server" EnableViewState="false">
    </asp:Panel>
    </form>
    ...
</body>
</html>

Phil

4 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 15 Aug 2011, 02:35 PM
Hi Phil,

Could you please elaborate a bit more on your ajax settings.

How does the Panel is updated exactly. Posting some code from the content page and related code behind could help us further research on the problem and provide proper solution.

Best wishes,
Maria Ilieva
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Phil
Top achievements
Rank 2
answered on 16 Aug 2011, 02:20 AM
Hi:

You really do not need to know this info.

I have an interface for both the Master page and the content base page.  I have a list of strings in the master page.  All content pages inherit the content base page. The content pages adds to the list via the base page.  On pre-render, the master page populates the pnlErrors with the data in the list.

Phil
0
Maria Ilieva
Telerik team
answered on 17 Aug 2011, 03:16 PM
Hi Phil,

Note that if you need to update some content on the page during ajax request the same should be added as updated control in RadAjaxManager settings or wrapped by the  RadAjaxPanel control. Please ensure that the panel which should be updated and the ajax initiator are both added into the ajax settings.


Best wishes,
Maria Ilieva
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Phil
Top achievements
Rank 2
answered on 17 Aug 2011, 07:32 PM
Hi:

Thanks for your response.  The answer seems to be RadAjaxManager.  So, I just found the following:
ajax-load-control-from-another-webusercontrol-in-different-masterpage-contentplaceholder
So, I will start from the above content.
Phil
Tags
Ajax
Asked by
Phil
Top achievements
Rank 2
Answers by
Maria Ilieva
Telerik team
Phil
Top achievements
Rank 2
Share this question
or