We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Autocomplete filter by object properties

Thread ID:





127662 Nov 30,2016 08:15 PM UTC Dec 2,2016 11:39 AM UTC WPF 3
Tags: AutoComplete
David García
Asked On November 30, 2016 08:15 PM UTC


Is there a way to filter the elements in the AutoComplete by one or more properties in the object than by the string displayed?

For example, I got a class that has a property "ID" and another called "Name".

I want the user to filter the items either it enters part of the ID or part of the Name, so is there a way to create a custom filter?

Thanks in advance.

Keerthana Jegannathan [Syncfusion]
Replied On December 1, 2016 09:49 AM UTC

Hi David,   
Thank you for contacting Syncfusion support.   
In our AutoComplete control, filtering can be made based on the “DisplayMemberPath” property. As DisplayMemberPath holds the value of a property in a class, AutoCompletion cannot be done using multiple properties of the same class. This is the default behavior of AutoComplete control.    
Please let us know, if we misunderstood your query.   
Keerthana J.   

David García
Replied On December 1, 2016 12:11 PM UTC

Thanks for the reply back.

Yeah, what I tried to do is to filter the list based in other than the DisplayMemberPath to make the filtering more flexible than just the displayed text. Not using the AutoCompletition so though maybe was possible to use a more custom flitering.

Thanks anyway.

Keerthana Jegannathan [Syncfusion]
Replied On December 2, 2016 11:39 AM UTC

Hi David, 
Based on the current AutoComplete implementation, filtering cannot be done without using the DisplayMemberPath property. Please let us know if you need further assistance on this. 
Keerthana J. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon