This thread is about a very old version of RadControls, most probably your problem is different. Could describe it in more detail?
Generally RadComboBox will keep the value of its SelectedValue property if its ItemsSource is empty. When you add an item in the ItemsSource the combobox will try to select it if it matches the SelectedValue, if the first item does not match, the control will not try to select items anymore. That's why we recommend setting the whole ItemsSource at once. Consider the following:
comboBox1.SelectedValue="one";
"result" is the collection that was returned by the async call and it contains strings, including the string "one" that will be selected:
// This will not work
var items = new ObservableCollection<string>();
comboBox1.ItemsSource = items;
foreach (var item in result)
{
items.Add(item);
}
// This will work
var items = new ObservableCollection<string>();
foreach (var item in result)
{
items.Add(item);
}
comboBox1.ItemsSource = items;
Regards,
Valeri Hristov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>