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

Customizing autocomplete datasource?

1 Answer 49 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
loring vogel
Top achievements
Rank 1
loring vogel asked on 28 Aug 2011, 06:40 PM
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.

1 Answer, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 29 Aug 2011, 09:51 AM
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.

Greetings,
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 >>

Tags
ComboBox
Asked by
loring vogel
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Share this question
or