I am trying to alter the items collection of a radcombobox which is placed in a radtooltip with JS like
<telerik:RadToolTip ID="tt_svg_combo" HideEvent="ManualClose" OffsetX="20" RenderMode="Lightweight" Skin="Default" Width="400" Height="400" runat="server">
<telerik:RadComboBox ID="rcb_tooltip" runat="server"><Items>
<telerik:RadComboBoxItem Text="aa" Value="aa" />
</Items></telerik:RadComboBox>
</telerik:RadToolTip>
and JS:
var ott
ott = $find("<%=tt_svg_combo.ClientID%>");
var combo = $find("<%= rcb_tooltip.ClientID%>");
var items = combo.get_items();
combo.trackChanges();
var comboItem
var str='1$2$3$4$5'
var a = str.split("$");
for (i = 0; i < a.length; i++) {
comboItem = new Telerik.Web.UI.RadComboBoxItem();
comboItem.set_text(a[i]);
comboItem.set_value(a[i]);
items.add(comboItem);
}
combo.commitChanges();
}
setTimeout(function () {
ott.show();
}, 1000);
None of the added items are showing up on tooltip show.
When I place rcb on the page itself it works OK