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

Autocomplete - Fuzzy matching

3 Answers 229 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
RBeco
Top achievements
Rank 1
RBeco asked on 04 Feb 2014, 02:44 PM
I have a question regarding the filtering - or autocomplete - functionality of the RadComboBox. Does the RadComboBox support fuzzy matching?

For example, I have the list:
- Sheba
- Whiskas
- Gourmet

When typing in 'wis' it should also match 'whiskas' (because of fuzzy matching).

Thank you.

3 Answers, 1 is accepted

Sort by
0
Hristo Valyavicharski
Telerik team
answered on 07 Feb 2014, 09:41 AM
Hi,

RadComboBox and other filtering controls have two types of filtering - "Starts With" and "Contains". If you need something different you may create a custom filtering.

The "wis" doesn't match neither of these types. Contains - will return all items which text contains the search text anywhere.

Look at this help article.

Regards,
Hristo Valyavicharski
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
0
RBeco
Top achievements
Rank 1
answered on 07 Feb 2014, 01:32 PM
Hi,

Thanks for your response.

Do you have a suggestion how to implement custom filtering? Does Telerik have an API for this or should I for example use javascript and modify the items collection of the control?

Regards
0
Hristo Valyavicharski
Telerik team
answered on 10 Feb 2014, 12:17 PM
Hi,

Because the RadComboBox doesn't support custom filtering out of the box try to do the following. Bind the combo for a Webservice and modify the method which returns the data to work according to your filter pattern.

Regards,
Hristo Valyavicharski
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
Tags
ComboBox
Asked by
RBeco
Top achievements
Rank 1
Answers by
Hristo Valyavicharski
Telerik team
RBeco
Top achievements
Rank 1
Share this question
or