Radcombobox clears text if it is not in the list of items

I have telerik radcomboboxas shown below:

<telerik:RadComboBox x:Name="cbCustomerName"
                                 Grid.Row="1"
                                 Grid.Column="1"
                                 Grid.ColumnSpan="3"
                                 Margin="0 0 0 10"
                                 DisplayMemberPath="FullName"
                                 IsEditable="True"
                                 IsFilteringEnabled="True"
                                 ItemsSource="{Binding Customers}"
                                 OpenDropDownOnFocus="True"
                                 SelectedValuePath="CustomerId"
                                 SelectionChanged="cbCustomerName_SelectionChanged"
                                 Text="{Binding CurrentCustomer.FullName,
                                                UpdateSourceTrigger=LostFocus}" />

When I enter something into a text field that is not in his list of items, and then move on to another control, it clears the text in it that I do not want.

I checked all the properties and could not find anything to save it after losing focus.

Please help if anyone knows about this.

+5
source share
3 answers

, , , , - . "IsTextSearchEnabled" "False", , RadComboBox .

+1

AllowCustomText true?

0

Try to add TextSearchMode="Contains". Either this, or try deleting IsFilteringEnabled="True"if you do not need to filter your results.
I'm not 100% sure, but it can clear your text if you try to filter it and find nothing.

0
source

All Articles