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
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.
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.
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.