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

type of filters

1 Answer 63 Views
AutoComplete
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 04 Feb 2013, 11:20 AM
From the documentation about autocomplete 
.
Filter("contains") //Define the type of the filter, which autocomplete will use.

I noticed that the Filter method has some hard-coded values.What are the other filter types?
if other controls also have this kind of hard-coded values,where can i find them?also,they are case-sensitive?

Regards,
Daniel

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimiter Madjarov
Telerik team
answered on 05 Feb 2013, 05:45 AM
Hi Daniel,

 
The AutoComplete widget has two possible filters - "startswith" and "contains". They are both covered in the Documentation ("startswith" is the default value). 

Usually when a method receives a hard-coded value as a parameter, it is described in the documentation e.g. DataSource filter method.

All the best,
Dimiter Madjarov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
AutoComplete
Asked by
Daniel
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or