Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Radcombobox clears the text when it is not in the items list

I have a telerik's radcombobox like 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 type something in the textbox that is not in its items list and then go to some other control, it clears the text in it, which I don't want.

I have checked all properties and couldn't find anything to retain it after losing focus.

Please help if anyone knows about this.

like image 306
teenup Avatar asked Nov 14 '22 00:11

teenup


1 Answers

I know this question is old but I figured I'd post a solution in case anyone else has this issue. If you set the "IsTextSearchEnabled" property to "False", it allows custom text and doesn't clear it when the RadComboBox loses focus.

like image 172
agritton Avatar answered Dec 29 '22 12:12

agritton