This is a migrated thread and some comments may be shown as answers.

How do I set the Filter Autocomplete to Contains on a column?

3 Answers 600 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 28 Jan 2016, 10:25 PM
We have a string column where a user types in "foo" and wants to return "alphafoo", "dogfoodog" as well as "foo". How can I change the column filter to allow automcomplete to use contains logic instead of starts with?

3 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 01 Feb 2016, 09:58 AM

Hello Alex,

 

I believe this is the functionality that you are looking for:

 

http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#configuration-columns.filterable.cell.template

 

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Alex
Top achievements
Rank 1
answered on 01 Feb 2016, 05:49 PM

Thanks, Kiril! This is what we ended up using which does the job in case anyone else needs it:

.Filterable(f => f.Cell(c => c.SuggestionOperator(FilterType.Contains)))

0
Kiril Nikolov
Telerik team
answered on 03 Feb 2016, 08:09 AM

Hello Alex,

 

I am happy to hear that the issue is resolved. 

 

In case you have any further questions, please do not hesitate to contact us.

 

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Alex
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Alex
Top achievements
Rank 1
Share this question
or