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

2 posts, 0 answers
  1. Vik
    Vik avatar
    4 posts
    Member since:
    Mar 2012

    Posted 09 May 2012 Link to this post

    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?
  2. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 14 May 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top