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

Finding TypeOf Control ClientSide

1 Answer 124 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Feizal Amlani
Top achievements
Rank 1
Feizal Amlani asked on 11 Nov 2008, 06:27 PM
Hello,

I am looping through controls on the client and need to know the type of control.  For example, control.type returns whether it is text or a checkbox.  However, I cannot get the type if it is a RadComboBox.  Is there another way to achieve this?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 12 Nov 2008, 02:11 PM
Hello Feizal Amlani,

You can use the isInstanceOfType method. The actual client-side object is attached as an expando property ("control") to its corresponding html element:

var isCombo = Telerik.Web.UI.RadComboBox.isInstanceOfType($get("RadComboBox1").control);
Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ComboBox
Asked by
Feizal Amlani
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or