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.
Unfortunately, activation email could not send to your email. Please try again.

Autocomplete filter by object properties

Thread ID:

Created:

Updated:

Platform:

Replies:

127662 Nov 30,2016 03:15 PM Dec 2,2016 06:39 AM WPF 3
loading
Tags: AutoComplete
David García
Asked On November 30, 2016 03:15 PM

Hi,

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 04:49 AM

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.   
   
Regards,   
Keerthana J.   


David García
Replied On December 1, 2016 07:11 AM

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 06:39 AM

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. 
 
Regards, 
Keerthana J. 


CONFIRMATION

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.

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.

;