Dear!
i have to RadCombo Boxes first cmbCountry, and send cmbCity, I need to display Hotels in RadGrid depending on Comboxes. What i have to do for loading the Data in RadGrid?
i have doubt on selected index change event of City Combo Box, but i am not sure how to use this.....
ASP.NET 2.0
RADControls ASP.NET AJAX Q2 2008
OS:Vista
<telerik:RadComboBox ID="cmbCountry" Runat="server" Skin="Hay" OnItemsRequested="cmbCountry_ItemsRequested" OnClientSelectedIndexChanging="LoadCities" MarkFirstMatch="true" HighlightTemplatedItems="true" >
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</telerik:RadComboBox>
<telerik:RadComboBox ID="cmbCity" Runat="server" Skin="Hay" OnItemsRequested="cmbCity_ItemsRequested" OnSelectedIndexChanged="LoadHotels" MarkFirstMatch="true" HighlightTemplatedItems="true" >
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</telerik:RadComboBox>
Sub LoadCountries()
Dim A As New Telerik.Web.UI.RadComboBoxItem
A.Text = "---Select Country---"
With cmbCountry
.DataTextField = "Country_Name"
.DataValueField = "Country_ID"
.DataSource = objCountry.AllCountriesByReader
.DataBind()
End With
cmbCountry.Items.Insert(0, A)
End Sub
Sub LoadCities(ByVal CountryID As String)
Dim A As New Telerik.Web.UI.RadComboBoxItem
A.Text = "---Select City---"
If String.IsNullOrEmpty(CountryID) = True Then Exit Sub
objCity.CnID = CType(CountryID, Integer)
With cmbCity
.DataTextField = "City_Name"
.DataValueField = "City_ID"
.DataSource = objCity.AllCitiesByCnID
.DataBind()
End With
End Sub
i have to RadCombo Boxes first cmbCountry, and send cmbCity, I need to display Hotels in RadGrid depending on Comboxes. What i have to do for loading the Data in RadGrid?
i have doubt on selected index change event of City Combo Box, but i am not sure how to use this.....
ASP.NET 2.0
RADControls ASP.NET AJAX Q2 2008
OS:Vista
<telerik:RadComboBox ID="cmbCountry" Runat="server" Skin="Hay" OnItemsRequested="cmbCountry_ItemsRequested" OnClientSelectedIndexChanging="LoadCities" MarkFirstMatch="true" HighlightTemplatedItems="true" >
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</telerik:RadComboBox>
<telerik:RadComboBox ID="cmbCity" Runat="server" Skin="Hay" OnItemsRequested="cmbCity_ItemsRequested" OnSelectedIndexChanged="LoadHotels" MarkFirstMatch="true" HighlightTemplatedItems="true" >
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</telerik:RadComboBox>
Sub LoadCountries()
Dim A As New Telerik.Web.UI.RadComboBoxItem
A.Text = "---Select Country---"
With cmbCountry
.DataTextField = "Country_Name"
.DataValueField = "Country_ID"
.DataSource = objCountry.AllCountriesByReader
.DataBind()
End With
cmbCountry.Items.Insert(0, A)
End Sub
Sub LoadCities(ByVal CountryID As String)
Dim A As New Telerik.Web.UI.RadComboBoxItem
A.Text = "---Select City---"
If String.IsNullOrEmpty(CountryID) = True Then Exit Sub
objCity.CnID = CType(CountryID, Integer)
With cmbCity
.DataTextField = "City_Name"
.DataValueField = "City_ID"
.DataSource = objCity.AllCitiesByCnID
.DataBind()
End With
End Sub