Customizing autocomplete datasource?

2 posts, 0 answers
  1. loring vogel
    loring vogel avatar
    3 posts
    Member since:
    Aug 2005

    Posted 28 Aug 2011 Link to this post

    I have a combobox displaying 3 separate fields from the data source (using data template)

    I would like to have autocomplete search any of these fields as the user types.

    Is there a way to customize the way autocomplete works or modify the source of data which it is searching through to get this to work?

    For example I am displaying first name, last name, and id in the combo box

    and I would like the user to be able to start typing the first name or the last name or the id and have autocomplete select hits from any of those fields as the user types.
  2. Valeri Hristov
    Valeri Hristov avatar
    2252 posts

    Posted 29 Aug 2011 Link to this post

    Hello Loring,

    I already answered your support ticket, I am pasting my answer here as well, in case someone else has the same problem:
    I am afraid that RadComboBox does not support your requirement - the control can use only one property as a source for autocomplete, e.g. it could use only one of FirstName, LastName or ID in your scenario. You could create a fourth property, that will return the combined values of the three properties and switch the TextSearchMode to Contains - this way the control will be able to recognize the other properties, but it will also cease to autocomplete.

    Please, let's continue the conversation in only one place.

    Valeri Hristov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top