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

Select all ComboBox ina Div to set them to specific value.

1 Answer 19 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Vik
Top achievements
Rank 1
Vik asked on 09 May 2012, 05:22 PM
Hello!

I would like to know if there is a way to find all the ComboBoxes contained in a div and set their value attribute to "-1".

Actually I have several Rad Controls (ComboBox, NumericalTextBox, TextBox) contained in a div and I would like to find them all and set them to initial values as the div is hidden, using Javascript.
I can do this server-side but client-side is the new requirement.

Any Ideas?

1 Answer, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 14 May 2012, 08:37 AM
Hello Vik,

Thank you for contacting us.

In order to find the client side objects of specific set of control contained in a html element the findControl method of the Telerik static client library could be used. As a first parameter to the aforementioned method should be passed the html Dom element and as a second parameter the id of the control which you want to get reference to. Here is a full list of all methods container in our library.

Hope this would be helpful.

Greetings,
Dimitar Terziev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
ComboBox
Asked by
Vik
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Share this question
or