With a RadAjaxLoadingPanel on my page it does a full postback. Works correct without.

4 posts, 1 answers
  1. Jonx
    Jonx avatar
    258 posts
    Member since:
    Jul 2012

    Posted 24 Apr 2011 Link to this post

    Hello,
    When my page has a RadAjaxLoadingPanel it does a full postback. When I remove the control everything works fine.
    The page is very simple. I tried with a RadAjaxManager, it has the same problem.
    Version 2011.1.315.40

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication3.WebForm1" %>
     
    <!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>
    </head>
    <body>
        <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1"
            HorizontalAlign="NotSet">
            <telerik:RadGrid ID="RadGrid1" AllowPaging="True" DataSourceID="SqlDataSource1" runat="server"
                CellSpacing="0">
                <MasterTableView DataKeyNames="ID" AutoGenerateColumns="true">
                </MasterTableView>
            </telerik:RadGrid>
        </telerik:RadAjaxPanel>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyConnectionString %>"
            ProviderName="<%$ ConnectionStrings:MyConnectionString.ProviderName %>" SelectCommand="SELECT wptam_posts.ID, wptam_posts.post_title, wptam_terms.name, wptam_term_taxonomy.`count`, wptam_posts.post_date, wptam_posts.guid FROM wptam_term_taxonomy INNER JOIN wptam_term_relationships ON wptam_term_taxonomy.term_taxonomy_id = wptam_term_relationships.term_taxonomy_id INNER JOIN wptam_terms ON wptam_term_taxonomy.term_id = wptam_terms.term_id INNER JOIN wptam_posts ON wptam_term_relationships.object_id = wptam_posts.ID WHERE (wptam_term_taxonomy.taxonomy = 'category') AND (wptam_posts.post_type = 'post') ORDER BY wptam_posts.post_date">
        </asp:SqlDataSource>
        </form>
    </body>
    </html>

    Any hints of what I am doing wrong?
    Thank you for your help,
    John.
  2. Answer
    Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 25 Apr 2011 Link to this post

    Hello John,

    The provided code woks fine on my side. Please examine the attached project and let me know if you need additional assistance.

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

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jonx
    Jonx avatar
    258 posts
    Member since:
    Jul 2012

    Posted 25 Apr 2011 Link to this post

    Hello Pavlina,
    Thank you for your help.

    Your sample helped me find the problem. Silly me.
    In fact it was not doing a full postback, it just looked that way (white page)...

    What was missing was the fact that I did not set a skin for the RadAjaxLoadingPanel. this made the screen look white while the postback.
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Vista" />

    Thanks again,
    John.
  5. shrujan
    shrujan avatar
    5 posts
    Member since:
    May 2011

    Posted 03 May 2011 Link to this post

    hi hello,
    i have added 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="raddlPackage">
                    <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="holidaypackege" />
       </UpdatedControls>
                </telerik:AjaxSetting>
    </AjaxSettings>
        </telerik:RadAjaxManager>

    still its getting postback.....
    whats the solution for thiss..????/
Back to Top