I think a bug might have cropped up into the latest Telerik release (Q1 '14, April SP release). Typically, when clearing and adding items to a combo box client side, script like this has worked:
var combo = $find("MyComboList")
combo.trackChanges();
combo.clearItems();
// code to add items
combo.commitChanges();
However, with the current release, the above code will leave the previously selected item in the combo box as well. In order to remove it, you have to manually clear it, so the above code now becomes this:
var combo = $find("MyComboList")
combo.trackChanges();
combo.clearSelection(); // ensures that the current selected item will be removed as well
combo.clearItems();
// code to add items
combo.commitChanges();
This seems like a bug to me. Can someone from Telerik confirm?
Thanks,
Mike Oliver
var combo = $find("MyComboList")
combo.trackChanges();
combo.clearItems();
// code to add items
combo.commitChanges();
However, with the current release, the above code will leave the previously selected item in the combo box as well. In order to remove it, you have to manually clear it, so the above code now becomes this:
var combo = $find("MyComboList")
combo.trackChanges();
combo.clearSelection(); // ensures that the current selected item will be removed as well
combo.clearItems();
// code to add items
combo.commitChanges();
This seems like a bug to me. Can someone from Telerik confirm?
Thanks,
Mike Oliver