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

How to do TextSearch.TextPath comprises of mutiple fields

1 Answer 266 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Usman
Top achievements
Rank 1
Usman asked on 21 Oct 2019, 12:59 PM

Dear Telerik team,

We have a field with a specific template like {Id} - {String} and user want to enable filtering based on either user provide an Id or part of string value, we were able to display the respective information in the combo box using data template but it is required to select values but typing in the text field of combobox based on this template can you please suggest how to address it.

1 Answer, 1 is accepted

Sort by
0
Dimitar Dinev
Telerik team
answered on 23 Oct 2019, 12:59 PM

Hi Usman,

You can achieve that by using the FilteringBehavior attached property of the RadComboBox. Create a class which inherits ComboBoxFilteringBehavior, override the FindMatchingIndexes() method and implemented custom logic that would fit your scenario.

For your convenience, I've created a sample project that has a RadComboBox which allows you to filter items by their IDs and a part of the string which they contain. You can find the project attached. Please, review it and let me know if I missed something of importance.

Regards,
Dimitar Dinev
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
ComboBox
Asked by
Usman
Top achievements
Rank 1
Answers by
Dimitar Dinev
Telerik team
Share this question
or