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

How to display first readComboBoxItem1 as the first element

1 Answer 61 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Barkha
Top achievements
Rank 1
Barkha asked on 17 Oct 2007, 01:32 AM
Hi,

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.

barkha

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 17 Oct 2007, 08:36 AM
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,

Nikolay
the Telerik team


Instantly find answers to your questions at the new Telerik Support Center
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
Barkha
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or