Hi,
I have 2 radcomboboxes on my page. One for country and one for city. On the selected index changed event of the country dropdowni want to fill my city dropdown, which requires a database hit. I tried the following code, but it is causing postback, and working in ajax.
master page:
<div>
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
<Windows>
<telerik:RadWindow ID="RadWindow1" Height="500px" Width="600px"
KeepInScreenBounds="true" OnClientShow="OnPopupShow" Behaviors="Close,Pin,Maximize,Reload,Move"
OnClientClose="OnPopupClose" ReloadOnShow="false" ShowContentDuringLoad="false" Modal="true" runat="server">
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
<Scripts>
<asp:ScriptReference Name="" Assembly="" Path="~/Common/Scripts/Gateway.js" />
</Scripts>
</telerik:RadScriptManager>
</div>
Content page - on which Ajax is required:
<telerik:RadAjaxManager ID="AjaxManagerId" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="Country" EventName="SelectedIndexChanged">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="City" LoadingPanelID="loadingPanel" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="loadingPanel" runat="server">
<asp:Image ID="loadingImage" runat="server" ImageAlign="Middle" ImageUrl="~/Images/Loading.gif">
</asp:Image>
</telerik:RadAjaxLoadingPanel>
<td>
Client Country
</td>
<td>
<telerik:RadComboBox ID="Country" runat="server" Width="150px" OnSelectedIndexChanged="Country_SelectedIndexChanged"
AutoPostBack="true" Height="170px">
</telerik:RadComboBox>
</td>
<td>
Client City
</td>
<td>
<%
-- <asp:TextBox ID="ClientCity" runat="server" Width="110px"></asp:TextBox>--%>
<telerik:RadComboBox ID="City" runat="server" Width="110" AllowCustomText="true"
MarkFirstMatch="true" ShowToggleImage="false" MaxHeight="170px">
</telerik:RadComboBox>
</td>
Please suggest what can be done to ajaxify filling of the child radcombobox.