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

Line break added on partial postback with master pages

1 Answer 42 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 14 Jun 2011, 07:04 PM
Whenever I perform an ajax postback using the RadAjaxManager, I get a line break added to the top of the page. Everything just shifts down 1 line. This only happens if I use master pages. I tried creating a single aspx form and it works fine. I created a basic masterpage and added a panel for refresh. I've tried moving the panel and button to a content page and using a RadAjaxManagerProxy but I get the same result. Also, this only happens when I publish this to the server. Running on local I do not get the issue.

Clicking on the 'SubmitBtn' refreshes the panel but it drop down 1 line.

<%@ Master Language="VB" AutoEventWireup="false" CodeBehind="Site1.master.vb" Inherits="RadControlsWebApp1.Site1" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title></title>
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
              <Scripts>
                     <%--Needed for JavaScript IntelliSense in VS2010--%>
                     <%--For VS2008 replace RadScriptManager with ScriptManager--%>
                     <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" />
                     <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
              </Scripts>
       </telerik:RadScriptManager>
       <script type="text/javascript">
           //Put your JavaScript code here.
    </script>
    <telerik:RadAjaxLoadingPanel runat="server" ID="LoadingPanel1" Skin="Office2007" />
       <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="SubmitBtn">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="testPanel" LoadingPanelID="LoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
       </telerik:RadAjaxManager>
    <div>
        <asp:Panel runat="server" ID="testPanel">
            test<br />
            <telerik:RadButton ID="SubmitBtn" runat="server" Text="Postback" Skin="Office2007" />
        </asp:Panel>
        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
          
        </asp:ContentPlaceHolder>
    </div>
    </form>
</body>
</html>

1 Answer, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 17 Jun 2011, 03:03 PM
Hello Richard,

In order to implement the desired functionality, please set the UpdatePanelsRenderMode property of the RadAjaxManager to Inline.
You can examine the Render modes help topic for additional information.

I hope this helps.

Regards,
Mira
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.

Tags
Ajax
Asked by
Richard
Top achievements
Rank 1
Answers by
Mira
Telerik team
Share this question
or