How to display first readComboBoxItem1 as the first element

Thread is closed for posting
2 posts, 0 answers
  1. Barkha
    Barkha avatar
    29 posts
    Member since:
    Oct 2007

    Posted 16 Oct 2007 Link to this post


    I have created one RadComboBox control whose Text is set as "AutoAnswerComboBox".
    Now it has 2 comboBoxItems
    1) On
    2) Off

    When i run the app, I first get to see "AutoAnswerComboBox" and then on click on the combo box, I see the actuall 2 elements.

    By default, I want user to first see "On" instead of "AutoAnswerComboBox".

    Can you please tell me how to set the first comboboxitem as the first displayed item to the user?

    Thanks in advance.

  2. Nikolay
    Nikolay avatar
    1805 posts

    Posted 17 Oct 2007 Link to this post

    Hi barkha,

    Thank you for your question.

    In order to see "On" by default, considering that "On" is the first RadComboBoxItem in your RadComboBox, simply put the following code in your Form Load event:

    radComboBox1.SelectedIndex = 0; 

    If we could be of further assistance, do not hesitate to contact us.

    Kind regards,

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top