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

Clearing bug?

1 Answer 74 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
William
Top achievements
Rank 1
William asked on 13 Sep 2010, 08:44 AM

Hi,
I have the following combobox that I am trying to use essentially as an edit field and the dropdown list as a collection of predefined values that the user can select.

The problem is that the 'Clear' button in the dropdown list (that shows up due to the 'ClearSelectionButtonVisibility' property) does not always clear the text. It works fine if I select an item from the dropdown list before the clear, but if I type in text that does not match any of the items then it does nothing.
Best regards,
Pete

 


<
telerik:RadRibbonComboBox

 

 

CanAutocompleteSelectItems="True"

 

 

CanKeyboardNavigationSelectItems="True"

 

 

ClearSelectionButtonVisibility="Visible"

 

 

EmptyText="Enter text"

 

 

FilteringMode="Contains"

 

 

IsEditable="True"

 

 

IsFilteringEnabled="True"

 

 

IsReadOnly="False"

 

 

ItemsSource="{Binding Source={x:Static local:Core.App}, Path=SummaryTextForAllGames, Mode=OneWay}"

 

 

MinWidth="250"

 

 

OpenDropDownOnFocus="True"

 

 

StaysOpenOnEdit="True"

 

 

Text="{Binding Path=Value, Mode=TwoWay}"

 

 

TextSearchMode="Contains"

 

 

VerticalAlignment="Center"

 

 

/>

 

1 Answer, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 13 Sep 2010, 09:57 AM
Hello William,

The Clear button sets SelectedItem=null and nothing more. If the typed text does not match any item, the SelectedItem will already be null and if you click the Clear button, the selection will not change and the text will not be updated. I think your scenario is reasonable, and I will update the control to set the Text property when the Clear button is clicked. The upcoming service pack this week will contain the update.

Kind regards,
Valeri Hristov
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
William
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Share this question
or