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

[Solved] autocomplete contains function missing ?

1 Answer 133 Views
AutoCompleteBox for HTML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
John
Top achievements
Rank 1
John asked on 26 Nov 2012, 06:45 PM
I have a client side array that I need to filter with an autocomplete.   I need to it to work like the default setting in jquery.

Every other telerik and kendoui autocomplete control seems to have a contains function but I only see the starts with option in Windows 8.

Can you confirm if this is a product limitation.

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 27 Nov 2012, 07:25 AM
Hi John,

You can use a variety of filters for RadAutoCompleteBox and RadComboBox, specified by their filter property:

<span id="autoComplete" data-win-control="Telerik.UI.RadAutoCompleteBox" data-win-options="{
    dataSource: ['orange', 'apple', 'pear', 'peach', 'banana'],
    filter: 'contains'
    }"></span>

You can use one of the following string filters:

"startswith", "endswith", "contains", "eq", "neq"

I hope this helps.

Greetings,
Veli
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
AutoCompleteBox for HTML
Asked by
John
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or