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

3 posts, 0 answers
  1. ابو
    ابو avatar
    14 posts
    Member since:
    Oct 2015

    Posted 07 Nov Link to this post

    RadComboBox autocomplete - Search in any place with mode "contains"
  2. Nasko
    Admin
    Nasko avatar
    586 posts

    Posted 08 Nov Link to this post

    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!
  3. UI for WPF is Visual Studio 2017 Ready
  4. ابو
    ابو avatar
    14 posts
    Member since:
    Oct 2015

    Posted 09 Nov Link to this post

    thanks

Back to Top