Hi Vessy,
Finally, I am able to manage the code and get the result as what I need.
Aspx :
<
div
class
=
"form-group"
>
<
label
>Region : </
label
>
<
telerik:RadComboBox
ID
=
"rcbRegion"
runat
=
"server"
CheckBoxes
=
"True"
EnableCheckAllItemsCheckBox
=
"true"
DataSourceID
=
"sds_getRegion"
DataTextField
=
"_REGION"
DataValueField
=
"_REGION"
>
</
telerik:RadComboBox
>
</
div
>
<
div
class
=
"form-group"
>
<
label
>Product : </
label
>
<
telerik:RadComboBox
ID
=
"rcbProduct"
runat
=
"server"
CheckBoxes
=
"True"
EnableCheckAllItemsCheckBox
=
"true"
DataSourceID
=
"sds_getProduct"
DataTextField
=
"_PRODUCT"
DataValueField
=
"_PRODUCT"
DropDownWidth
=
"300px"
>
</
telerik:RadComboBox
>
</
div
>
C#
protected void btnSubmit_Click(object sender, EventArgs e)
{
string checkedRegion = string.Empty;
string checkedProduct = string.Empty;
string checkedText = string.Empty;
foreach (RadComboBoxItem reg in rcbRegion.Items)
{
if (reg.Checked)
{
checkedRegion = reg.Text;
foreach (RadComboBoxItem pro in rcbProduct.Items)
{
if (pro.Checked)
{
checkedProduct = pro.Text;
checkedText += checkedRegion + "-" + checkedProduct + ", ";
}
}
}
else { checkedRegion = "0"; }
}
lblGroupString.Text = checkedText.Trim().TrimEnd(',');
}
Appreciate your response.
Thanks.