Autocomplete - Fuzzy matching

4 posts, 0 answers
  1. RBeco
    RBeco avatar
    15 posts
    Member since:
    Apr 2013

    Posted 04 Feb 2014 Link to this post

    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.
  2. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 07 Feb 2014 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. RBeco
    RBeco avatar
    15 posts
    Member since:
    Apr 2013

    Posted 07 Feb 2014 in reply to Hristo Valyavicharski Link to this post

    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
  5. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 10 Feb 2014 Link to this post

    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.
Back to Top