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

RadAjaxManager does full postBack

1 Answer 188 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
myobis
Top achievements
Rank 1
myobis asked on 29 Jan 2011, 03:16 AM
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

1 Answer, 1 is accepted

Sort by
0
Accepted
Tsvetina
Telerik team
answered on 02 Feb 2011, 12:16 PM
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.
Tags
Ajax
Asked by
myobis
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or