I'm trying to set the value of a combo box that uses javascript to clear the items, add one, and set the only item as selected. Everything works except for setting the newly added item as the selected item. When this is triggered, it causes IE9 to crash.
Any ideas? BTW, I'm using 2013 Q1.
Any ideas? BTW, I'm using 2013 Q1.
<
telerik:RadComboBox
ID
=
"RCB_Build"
runat
=
"server"
CheckBoxes
=
"true"
EmptyMessage
=
"Select all that apply"
OnClientSelectedIndexChanged
=
"toggleFields"
EnableCheckAllItemsCheckBox
=
"true"
TabIndex
=
"5"
ToolTip
=
"Select the schedule month(s)"
AutoPostBack
=
"false"
>
<
ExpandAnimation
Type
=
"OutExpo"
Duration
=
"300"
/>
<
CollapseAnimation
Type
=
"InExpo"
Duration
=
"200"
/>
</
telerik:RadComboBox
>
var
RCB_Build = $find(
'<%=RCB_Build.ClientID%>'
);
var
rcbItem =
new
Telerik.Web.UI.RadComboBoxItem();
rcbItem.set_text(n);
rcbItem.set_value(fom);
RCB_Build.trackChanges();
RCB_Build.clearItems();
RCB_Build.get_items().add(rcbItem);
rcbItem.select();
RCB_Build.commitChanges();