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

[Solved] Check RadComboBox with jquery

1 Answer 185 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
wnl
Top achievements
Rank 1
wnl asked on 21 Aug 2009, 08:24 AM
Hi,
how to check kind of a control with jquery that this control is a RadComboBox or TextBox?
E.g.: I have a RadComboBox with id="Street" and I want to know if there is a RadComboBox.
Thanks.

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 21 Aug 2009, 09:14 AM
Hello Jaromin Sycz,

If you have a RadControl with ID = "Street" you can check if it is a combo by using:

var element = $find("Street");  
          
if (element && Telerik.Web.UI.RadComboBox && element instanceof Telerik.Web.UI.RadComboBox) 
   // it is combo 
}  


Kind regards,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
ComboBox
Asked by
wnl
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or