RadAjaxManager does full postBack

2 posts, 1 answers
  1. myobis
    myobis avatar
    6 posts
    Member since:
    Apr 2008

    Posted 28 Jan 2011 Link to this post

    Hello people,

    I have a proble regarding RadAjaxManager.
    I am using 2 RadComboBoxes on a page. The first one loads Locations and the second one loads Events. I use the SelectedIndexChange Event to fill the events comboBox with event according to the selected location and vice versa. ALthough I am using RAdAjaxManager, I am getting a full postback when I select either a location or an event. I should mention that I am using a master page where I have the RadScriptManager. Here is my code:

    <asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <telerik:RadAjaxManager runat="server" id="RadAjaxManager1">
             <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="pnlSearchBox" >
                    <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="pnlSearchBox"  LoadingPanelID="RadAjaxLoadingPanel1" />
                        </UpdatedControls>
                </telerik:AjaxSetting>
             </AjaxSettings>
                <AjaxSettings >
                    <telerik:AjaxSetting AjaxControlID="pnlScheduler" >
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="pnlScheduler" LoadingPanelID="RadAjaxLoadingPanel1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>
              <telerik:RadAjaxLoadingPanel id="RadAjaxLoadingPanel1" runat="server" transparency="60" Height="950px"
                        backcolor="White">
                         <br /><br /><br /><br /><br /><br /><br />
                    <asp:Image ID="loadingPicture" runat="server" ImageUrl="../App_Themes/myOBIS/picts/loading.gif" />
            </telerik:RadAjaxLoadingPanel>
    .
    .
    .
    .
    .
     <asp:Panel ID="pnlSearchBox" runat="server">
        <asp:Label ID="lblStandorte" runat="server" Text="<%$ Resources:GlobalLocalization, Standort_%>" />
        <telerik:RadComboBox ID="rcbLocations" runat="server"  AutoPostBack="true"
               EnableEmbeddedSkins="false" Skin="myOBIS" DataTextField="LocationName" DataValueField="LocationId"
                    CssClass="field_long" onselectedindexchanged="Locations_SelectedIndexChange" ></telerik:RadComboBox>                                              
     <asp:Label ID="lblProdukte" runat="server" Text="<%$ Resources:GlobalLocalization, Produkt_%>" />
       <telerik:RadComboBox ID="rcbProducts" runat="server"  DataTextField="InternalProductName" DataValueField="ProductId"  EnableEmbeddedSkins="false" Skin="myOBIS"   CssClass="field_long" AutoPostBack="true"
        onselectedindexchanged="Products_SelectedIndexChange" ></telerik:RadComboBox>                                                  
              <asp:Panel/>  
                                                  
    ...

    I have also tried to put the locations ComboBox directly as AjaxControlId and updating the Events ComboBox directly but still I get a full postback. I am using the AjaxManager in almost all pages of our Business Application but it doesn't seem to work.
    I'd be glad to get some help
  2. Answer
    Tsvetina
    Admin
    Tsvetina avatar
    2481 posts

    Posted 02 Feb 2011 Link to this post

    Hello,

    RadAjax does not allow more than one RadAjaxManager on the page. Instead, in a complex scenario like Master/ContentPages, you should place RadAjaxManager instance on the master page and add a proxy controls to the content pages. More on RadAjaxManagerProxy can be found here.

    If this does not fix the problem on your side, I would advise you to open a formal support ticket and send us a runnable sample isolating the desctibed issue, so we can track down its source.

    Greetings,
    Tsvetina
    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.
Back to Top