Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Combobox > Set Combobox Selected Index to 0 (with Javascript)
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered Set Combobox Selected Index to 0 (with Javascript)

Feed from this thread
  • Brock avatar

    Posted on Jun 28, 2011 (permalink)

    I have been scouring the internet for how to do this with no luck.

    Here's what I'm working with....


                               function deselectParticipant(rbClientID0, rcbParticipant0) {
                               
                                   var Participant = $find(rcbParticipant0);
                                   Participant.Items[0].Select()
                               }
    I would like to see my combobox set the selectedindex to 0 (the blank item) .

    I found the Participant.Items[0].Select()  code here.... http://www.telerik.com/help/aspnet/combobox/combo_client_model.html


    But it's not working... and I've tried numerous other examples. Any ideas?

  • Brock avatar

    Posted on Jun 28, 2011 (permalink)

    Nevermind! Finally found it.

    Here's the magic code:


    Participant.get_items().getItem(0).select();

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Combobox > Set Combobox Selected Index to 0 (with Javascript)