Autocomplete "Contains" property for valueset assigned

Hi Team,

Currently, we have autocomplete feature associated with syncfusion text box control we use and this text box has a value set associated with it. When I start typing text, it filters the associated value set starting with the text that I typed in. However, our clients have requirement to filter the value set which contains the text that is typed in text box. 

Could you please let me know such option is available, so that we can filter/search on the value set that contains the text typed in text box?

Thanks
Neeta

4 Replies

PB Priyanga Balasubramaniam Syncfusion Team November 7, 2017 07:22 AM UTC

Hi Neeta,

Thank you for using Syncfusion products.

With our current implementation of Autocomplete control there is no direct support to specify the search type. We can achieve this by overriding the “PopulateListWithMatches” method in Autocomplete control.

You can find the sample link and sample code in the below article.

Link: https://www.syncfusion.com/kb/6592/how-to-customize-text-filtering-functionality-in-autocomplete  

Let us know does the above article meets your requirement?

Regards,
Priyanga B 



NE Neeta November 8, 2017 08:56 AM UTC

Hi Priyanga,

This will not help. I want to search with the contains i.e. if my string in value list is "This is search string" and when I type in "sea" in text box, it should search based on "contains" criteria and populate the values that contains "sea" in the whole string and not just starts with "sea".



NE Neeta November 8, 2017 10:40 AM UTC

Hi Priyanga,

Never mind, I got the solution in one of your forums. 

Thanks

Neeta



PB Priyanga Balasubramaniam Syncfusion Team November 8, 2017 12:30 PM UTC

Hi Neeta,

Thank you for the update.

Let us know if you need any other assistance on this.

Regards,
Priyanga B

Loader.
Up arrow icon