I have a RadComboBox1 that I want to show nothing in until the RadComboBox2 above it has a selected value. I do this by not setting a data source on RadComboBox1. Once a value is selected in RadComboBox2 on the server side I am setting a new datasource and loading the RadComboBox1. This works the first time I have selected an option in RadComboBox2 that has associated data. When I select an item in RadComboox2 that does not have associated data, RadComboBox1 will not clear.
I have tried the following to clear RadComboBox1:
However nothing seems to allow me to remove the items from RadComboBox1. I have tried this code on RadComboBox2 selected index changed, on RadComboBox1 items requested and elsewhere. Any help would be appreciated.
I have tried the following to clear RadComboBox1:
RadComboBox1.ClearSelection();
RadComboBox1.Text = string.Empty;
RadComboBox1.Items.Clear();
RadComboBox1.DataSource = null;
RadComboBox1.DataBind();
while (RadComboBox1.Items.Count > 0)
{
RadComboBox1.Items.Remove(0);
}
However nothing seems to allow me to remove the items from RadComboBox1. I have tried this code on RadComboBox2 selected index changed, on RadComboBox1 items requested and elsewhere. Any help would be appreciated.