Hi
I'm trying to use jquery to update a RadCombobox and set its selected index by using RadComboboxItem.Select().
The updating works fine, but when I use RadComboboxItem.Select() where RadComboboxItem.get_index()=0, RadCombobox.get_selectedIndex() returns the old index.
If RadCombobox.get_index()>0 it works fine.
function SetSelection(radCombo, selectedValue) {
radCombo.trackChanges();
radCombo.clearSelection();
var item = radCombo.findItemByValue(selectedValue);
if (item != null) {
item.select();
alert("id=" + radCombo.get_id() + " item.index=" + item.get_index());
radCombo.set_text(item.get_text());
radCombo.set_value(item.get_value());
}
radCombo.updateClientState();
radCombo.commitChanges();
alert("id="+radCombo.get_id()+" selectedValue="+selectedValue+" index=" + radCombo.get_selectedIndex());
}