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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Multiple Word Search in one string

Thread ID:





149496 Nov 27,2019 04:57 PM UTC Nov 28,2019 08:49 AM UTC Xamarin.Forms 1
Tags: SfAutoComplete
Asked On November 27, 2019 04:57 PM UTC

I am using Autocomplete to find items in an invoice.
I have 18.000 items and I want to make multiple word search.
For example 
Laptop HP Elitebook 8570W i5

If the user searches hp i5 I want this item to be suggested.

How can i achieve this  with sfAutocomplete

Hemalatha Marikumar [Syncfusion]
Replied On November 28, 2019 08:49 AM UTC

Hi 2RM, 
Greetings from Syncfusion. 
We checked your "Multiple Word Search in one string" requirement from our side in SfAutoComplete. Currently we don't have a direct support to achieve the same. But in SfAutoComplete, you can achieve this by custom searching. Within the custom search method, you can implement your logic that what you want.  
Code Snippet[C#] 
        public bool customSearchFilter(string search, object item) 
            if (search != string.Empty) 
                return true; 
                return false; 
For your reference, we have prepared the simple sample. 
Sample Link: 
UG Link: 
Please check with above and let us know if have any other queries. 
Hemalatha M. 


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

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon