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

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

3 Answers 45 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Jonx
Top achievements
Rank 2
Jonx asked on 24 Apr 2011, 07:08 AM
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.

3 Answers, 1 is accepted

Sort by
0
Accepted
Pavlina
Telerik team
answered on 25 Apr 2011, 09:52 AM
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.

0
Jonx
Top achievements
Rank 2
answered on 25 Apr 2011, 05:22 PM
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.
0
shrujan
Top achievements
Rank 1
answered on 03 May 2011, 01:05 PM
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..????/
Tags
Ajax
Asked by
Jonx
Top achievements
Rank 2
Answers by
Pavlina
Telerik team
Jonx
Top achievements
Rank 2
shrujan
Top achievements
Rank 1
Share this question
or