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

Delete value from combobox

1 Answer 67 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Michael Rodriguez
Top achievements
Rank 1
Michael Rodriguez asked on 14 Oct 2009, 07:53 PM
I have a combobox that is databound to a list of business objects.  Everything works great until I want to go back in the combobox in the UI and delete the value I put in it.  The list itself has no item with a null value, so it just doesn't do anything.

If my combobox is bound to a list of items, once I choose an item, am I stuck with having an item forever?  How do I wipe it out in the UI to make the value null again???

TIA,

Mike

1 Answer, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 16 Oct 2009, 03:57 PM
Hello Michael,

RadComboBox supports ClearSelectionButtonVisibility and  
ClearSelectionButtonContent properties. Setting the ClearSelectionButtonVisibility property  to Visible will display a button above all items which will clear the selected value when it is clicked.

For example:
<telerikInput:RadComboBox
               ClearSelectionButtonVisibility="Visible"
               ClearSelectionButtonContent="Clear All" />


Hope this helps.

Regards,
Rosi
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ComboBox
Asked by
Michael Rodriguez
Top achievements
Rank 1
Answers by
Rosi
Telerik team
Share this question
or