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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Is there a way to filter by any string within a value.

Thread ID:

Created:

Updated:

Platform:

Replies:

150218 Dec 26,2019 05:21 PM UTC Dec 30,2019 04:57 AM UTC ASP.NET Web Forms 1
loading
Tags: AutoComplete
Michael Horton
Asked On December 26, 2019 05:21 PM UTC

Is it possible to have a drop down, combo box, or auto completer to show results where any part matches the text typed? For example: Given the following values to select from:

Bob Smith
Jane Smithson
Becky Smithers
Bob Schultz

I type: "smith" and get back the following results:

Bob Smith
Jane Smithson
Becky Smithers


Thanks!

Shameer Ali Baig Sulaiman Ali Baig [Syncfusion]
Replied On December 30, 2019 04:57 AM UTC

Hi Michael,  
  
Thanks for contacting Syncfusion support.  
  
We have checked with your query. To achieve your expected requirement in EJ AutoComplete, use FilterType and HighlightSearch properties. 
 
Using FilterType property, you can filter the data which contains the typed text and HighlightSearch property can be used to highlight the typed text from the filtered list of data in the dropdown. 
 
Refer the below code block:  
 
<ej:Autocomplete ID="AutoComplete" runat="server" HighlightSearch="true" FilterType="Contains" DataTextField="ComponentNameDataUniqueKeyField="ComponentId" Width="500px"></ej:Autocomplete>  
 
  
  
Also, refer the below documentation link to customize the search results.  
  
Please, let us know if you need any further assistance. 
  
 
Regards,  
Shameer Ali Baig S. 


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.

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