5

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.

teenup
  • 7,459
  • 13
  • 63
  • 122

3 Answers3

1

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.

agritton
  • 1,250
  • 11
  • 15
  • If we add this then user cannot search the items in the combobox, here we want user should able to search and if it wont find in the list the text should also be there – GANI Jul 02 '14 at 16:31
0

Have you tried using the AllowCustomText Property to true?

Francis P
  • 13,377
  • 3
  • 27
  • 51
0

Try adding TextSearchMode="Contains". Either that or try removing IsFilteringEnabled="True" if you do not need to filter your results.
I am not 100% sure, but it may clear your text if you try and filter it and it does not find anything.

Cruril
  • 450
  • 4
  • 14