Hello,
I am using a RadComboBox on an Ajax Modal Popup Extender.
What I am attempting to do is to select a specific item in the combo box and have that item displayed as the selected item in the combo box. Prior to displaying the popup that contains the combo box, the combo box is populated and I know the Value of the item that I want to select.
Here is the javascript I am using:
I am using a RadComboBox on an Ajax Modal Popup Extender.
What I am attempting to do is to select a specific item in the combo box and have that item displayed as the selected item in the combo box. Prior to displaying the popup that contains the combo box, the combo box is populated and I know the Value of the item that I want to select.
Here is the javascript I am using:
rcbSearchOffices.trackChanges();
rcbSearchOffices.set_value(defaultOfficeId.value);
var
item = rcbSearchOffices.findItemByValue(defaultOfficeId.value);
rcbSearchOffices.set_selectedItem(item);
rcbSearchOffices.updateClientState();
rcbSearchOffices.commitChanges();
However, when the combo box is displayed, the item that I am trying to select is not visibly selected unless I click on the combo box. If I click on the combo box, I am automatically taken to that item. What I want to happen is that the item is automatically displayed as the selected item in the combo box.
How do I do this?
Thanks!