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

Clearing the selection of a Combobox

1 Answer 42 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Jack Helm
Top achievements
Rank 1
Jack Helm asked on 01 Apr 2010, 08:57 PM
I have a simple RadComboBox control and it has two items in it using the RadComboBoxItem tags. When i reset the form I need to clear out the combobox so that the item that had been selected is no longer selected. I have tried all the obvious ways I can think of and looked in the help file. (if it is there, I missed it completely) So what is the magic bullet I have been missing?

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 06 Apr 2010, 10:06 AM
Hello Jack,

Thank you for contacting us.

To clear the selection in the ComboBox you can set the SelectedItem property to null, like so:

myComboBox.SelectedItem = null;

Please let us know if you need further assistance.

Best wishes,
Konstantina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
ComboBox
Asked by
Jack Helm
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or