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

automcomplete search both text and value?

3 Answers 39 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Henry
Top achievements
Rank 1
Henry asked on 25 Apr 2012, 09:34 PM
I had a radcombobox that set up to filter="Contains", it works fine. but it only search the "text" of those RadComboBoxItem in combobox, is there an easy way to enable it so that it tried to search both "text" and "value" of the RadComboBoxItem in comboxbo? or possible include those in the attributes in RadComboBoxItem?

Thanks.

3 Answers, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 30 Apr 2012, 02:14 PM
Hello Henry,

Unless you implement some custom functionality the RadComboBox will search among its items based on their Text property. On other hand of you implement a multi-column combobox where the Value is displayed as a separate column then the Filtering will search for a match in all of the available columns.

Kind regards,
Dimitar Terziev
the Telerik team
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 RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Henry
Top achievements
Rank 1
answered on 30 Apr 2012, 03:28 PM
Dimitar, thanks for the reply.

Yes actually my combobox was multiple columns, but the filter is only on the text, not those other columns. could you provide any demo or examples?
0
Dimitar Terziev
Telerik team
answered on 03 May 2012, 10:44 AM
Hello,

I've prepared a sample page so you could use it as a reference.

Kind regards,
Dimitar Terziev
the Telerik team
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 RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
ComboBox
Asked by
Henry
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Henry
Top achievements
Rank 1
Share this question
or