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

RadComboBox autocomplete - Search in any place with mode "contains"

2 Answers 319 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
ابو
Top achievements
Rank 1
ابو asked on 07 Nov 2016, 09:26 AM
RadComboBox autocomplete - Search in any place with mode "contains"

2 Answers, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 08 Nov 2016, 08:56 AM
Hello,

In order to achieve a similar to the desired behavior you could use the TextSearchMode property of RadComboBox and set is to Contains and enable the filtering functionality using the IsFilteringEnabled property:
<telerik:RadComboBox Width="200"
           x:Name="radComboBox"
           DisplayMemberPath="Name"
           IsFilteringEnabled="True"
           IsEditable="True"
           OpenDropDownOnFocus="True"
           TextSearchMode="Contains"
           ItemsSource="{Binding Agency}"/>

You might also want to consider using our RadAutoCompleteBox. It provides auto-completion functionality with Contains mode our of the box. You could also check the sample that demonstrates how to add a button to RadAutoCompleteBox to make the control more similar to RadComboBox in appearance:
https://github.com/telerik/xaml-sdk/tree/master/AutoCompleteBox/OpenWithDropDownButton

Hope this helps.

Regards,
Nasko
Telerik by Progress
Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
0
ابو
Top achievements
Rank 1
answered on 09 Nov 2016, 06:14 PM

thanks

Tags
ComboBox
Asked by
ابو
Top achievements
Rank 1
Answers by
Nasko
Telerik team
ابو
Top achievements
Rank 1
Share this question
or