This is a migrated thread and some comments may be shown as answers.

RadComboBoxItem "Object doesn't support this property or method"

3 Answers 83 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
mdanna
Top achievements
Rank 1
mdanna asked on 24 Jan 2011, 09:17 PM
Hi,

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?

Thanks,
Matt

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 25 Jan 2011, 08:48 AM
Hello Matt,


You need to use the $find(() method to get reference to RadComboBox client object.

More information and sample can be found here:
Client-Side Basics
RadComboBoxItem object


-Shinu.
0
mdanna
Top achievements
Rank 1
answered on 25 Jan 2011, 03:41 PM
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?

All the best,
Kalina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
ComboBox
Asked by
mdanna
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
mdanna
Top achievements
Rank 1
Kalina
Telerik team
Share this question
or