Reputation: 7667
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.
Upvotes: 5
Views: 4944
Reputation: 1328
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.
Upvotes: 1
Reputation: 450
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.
Upvotes: 0