Hi,
I might be missing a trick here but I simply want to get a reference to a RadComboBox which is sitting on a SharePoint application page.
If my RadComboBox has an ID of lstCountry then I can select it (?) using;
var brandDropDown = $("select[id$='lstCountry']");
However none of the methods I'd expect to see are present, so the following attempt at adding items doesn't work (method not supported)
var comboItem = new Telerik.Web.UI.RadComboBoxItem();
comboItem.set_text(unit.Brand.Name);
brandDropDown.Items.Add(comboItem); OR
brandDropDown.get_items().add(comboItem)
I'm pretty sure the JQuery selector is not getting the correct object from the DOM - can anyone help me out please ?
Thanks,
MDM
I might be missing a trick here but I simply want to get a reference to a RadComboBox which is sitting on a SharePoint application page.
If my RadComboBox has an ID of lstCountry then I can select it (?) using;
var brandDropDown = $("select[id$='lstCountry']");
However none of the methods I'd expect to see are present, so the following attempt at adding items doesn't work (method not supported)
var comboItem = new Telerik.Web.UI.RadComboBoxItem();
comboItem.set_text(unit.Brand.Name);
brandDropDown.Items.Add(comboItem); OR
brandDropDown.get_items().add(comboItem)
I'm pretty sure the JQuery selector is not getting the correct object from the DOM - can anyone help me out please ?
Thanks,
MDM