So I am now able to instantiate a RadComboBoxItem from javascript, but when I try to call set_text or any other method for that matter, I get the "Object doesn't support this property or method" exception. How do I access its members?
I already have a reference to the combobox. The problem is with the RadComboBoxItem. None of the properties or methods are showing up. Here is the code:
var comboItem = new Telerik.Web.UI.RadComboBoxItem();
comboItem.set_text(result.Name); <--throwing exception
comboItem.set_value(result.ID.toString());
The second line is throwing an "Object doesn't support this property or message" exception on set_text(). There are no other properties or methods on comboItem when I look at in while debugging. Any ideas?
Matt
0
Kalina
Telerik team
answered on 26 Jan 2011, 09:47 AM
Hi mdanna,
I am not sure that I understand the issue.
In order to set the text of a RadComboBox item at client-side you have to use the set_text() method - so your approach looks correct.
Could you please explain in more details what the scenario that you are trying to implement is?