Hello,
I have 2 RadComboBox.
The first one select one or more cities:
<
telerik:RadComboBox
ID
=
"cmbCities"
EmptyMessage
=
"Cities"
runat
=
"server"
MarkFirstMatch
=
"true"
Width
=
"100%"
CheckBoxes
=
"true"
EnableCheckAllItemsCheckBox
=
"true"
DataTextField
=
"CityName"
AutoPostBack
=
"true"
DataValueField
=
"CityCode"
OnSelectedIndexChanged
=
"cmbCities_SelectedIndexChanged"
>
</
telerik:RadComboBox
>
and the second one should is bases on the selected items of the first one,
and should shows the products available in the selected cities.
<
telerik:RadComboBox
ID
=
"cmbProducts"
EmptyMessage
=
"Products"
runat
=
"server"
MarkFirstMatch
=
"true"
Width
=
"100%"
CheckBoxes
=
"true"
EnableCheckAllItemsCheckBox
=
"true"
DataTextField
=
"ProductName"
AutoPostBack
=
"true"
DataValueField
=
"ProductCode"
OnSelectedIndexChanged
=
"cmbProduct_SelectedIndexChanged"
>
</
telerik:RadComboBox
>
My problem is that I don't know how to create the query (SELECT) based on the first combobox selection,
something like:
SELECT ProductName, ProductCode FROM Products WHERE CityCode IN (........selectedItems from 1st RadComboBox....)
Can anyone help me?
Thanks a lot.
Luis