Hi,
there is a good example with related combos: http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multiplecomboboxes/defaultvb.aspx
I can't handle with pre-selection in last Combobox. For example if I choose Europe as continent, then France as country I would like to pre-select Paris as a city. I would know I wanted select Paris during Cities binding, becasue some indicator tells me about it during SELECT statement.
Is it possible somewhere in code?
I tried hard coding
Thanks in advance for your help
there is a good example with related combos: http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multiplecomboboxes/defaultvb.aspx
I can't handle with pre-selection in last Combobox. For example if I choose Europe as continent, then France as country I would like to pre-select Paris as a city. I would know I wanted select Paris during Cities binding, becasue some indicator tells me about it during SELECT statement.
Is it possible somewhere in code?
I tried hard coding
add RadComboBox3
.SelectedIndex = "1" after DataBind() but with no resultProtected Sub LoadCities(ByVal countryID As String)
Dim connection As New SqlConnection(ConfigurationManager.ConnectionStrings("TelerikConnectionString").ConnectionString)
'select a city based on the countryID
Dim adapter As New SqlDataAdapter("SELECT * FROM Cities WHERE CountryID=@CountryID ORDER By Name", connection)
adapter.SelectCommand.Parameters.AddWithValue("@CountryID", countryID)
Dim dt As New DataTable()
adapter.Fill(dt)
RadComboBox3.DataTextField = "Name"
RadComboBox3.DataValueField = "ID"
RadComboBox3.DataSource = dt
RadComboBox3.DataBind()
End Sub
Thanks in advance for your help