Clearing the selection of a Combobox

2 posts, 0 answers
  1. Jack Helm
    Jack Helm avatar
    18 posts
    Member since:
    Jan 2010

    Posted 01 Apr 2010 Link to this post

    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?
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 06 Apr 2010 Link to this post

    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.
Back to Top