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

Can the suggestion list use "contains" instead of "starts with"?

1 Answer 125 Views
AutoComplete
This is a migrated thread and some comments may be shown as answers.
T
Top achievements
Rank 1
T asked on 03 Apr 2012, 05:47 PM
The suggestion list seems to search with "starts with".

If my list is "Wedding", "Teddy Bears", and "Eddie Money", and I type "Edd" into the box I only get Mr. Money but I'd like to get all three since all three contain "Edd".

(Note: This question is in no way meant to be some sort of admission that I like Eddie Money.)

1 Answer, 1 is accepted

Sort by
0
Cesar
Top achievements
Rank 1
answered on 11 Apr 2012, 05:35 AM

Use the option 'filter'.

Example:

                $("#my_autocomplete_box_id").kendoAutoComplete({
                    dataSource: my_data_source,
                    filter: "contains",
                });';

Regards.
Tags
AutoComplete
Asked by
T
Top achievements
Rank 1
Answers by
Cesar
Top achievements
Rank 1
Share this question
or