or
<telerik:RadAjaxPanel ID="ProductsRadAjaxP" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" RequestQueueSize="50"> <asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server"> <ContentTemplate> <table width="100%"> <tr> <td> <asp:Label ID="lbl_Country" runat="server" Text="Country: " /> </td> <td> <telerik:RadComboBox ID="cmb_Country" runat="server" Height="200" Width="160" EmptyMessage="Choose Country" MarkFirstMatch="true" EnableLoadOnDemand="true" AutoPostBack="true" CheckBoxes="true" EnableCheckAllItemsCheckBox="true" Filter="Contains" OnSelectedIndexChanged="cmb_Country_SelectedIndexChanged"> </telerik:RadComboBox> </td> </tr> <tr> <td> <asp:Label ID="lbl_Casa" runat="server" Text="Casa: " /> </td> <td> <telerik:RadComboBox ID="cmb_Casa" runat="server" Height="200" Width="160" EmptyMessage="Choose Casa" MarkFirstMatch="true" EnableLoadOnDemand="true" AutoPostBack="true" CheckBoxes="true" EnableCheckAllItemsCheckBox="true" Filter="Contains" OnSelectedIndexChanged="cmb_Casa_SelectedIndexChanged"> </telerik:RadComboBox> </td> </tr>
<!-- there are alot more controls, but all with the same parameter --> </table> </ContentTemplate> </asp:UpdatePanel> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Transparency="1" Skin="Metro"> </telerik:RadAjaxLoadingPanel>
C#:
protected void cmb_Country_SelectedIndexChanged(object sender, EventArgs e)
{
//I have a long process and SQL procedures... this is just an example of how i'm filling the control
cmb_Casa.DataSource = DataHelper.GetCasa(cmb_Country.CheckedItems[0].Value);
cmb_Casa.DataBind();
}
.
.
.
.
