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

TextSearchPath - 2 Properties?

1 Answer 238 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
ITA
Top achievements
Rank 1
ITA asked on 02 May 2013, 01:54 PM
HI,

i use your AutoCompleteBox from you wpf-example. It works fine. In your "Contatc.cs" are two properties, firstname and lastname.
Your TextSearchParh in the xaml file ist "FirstName".

Is it possible to you both properties "FirstName" and "lastName"??

Thanks
Best Regards
Rene

1 Answer, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 07 May 2013, 07:54 AM
Hi,

By design the TextSearchPath property cannot be set to multiple objects in order to use two or more properties of the bound object when filtering the items in the AutoCompleteBox control.

In order to achieve the desired behavior in the RadAutoCompleteBox control you will need to create a custom FilteringBehavior with the custom logic of the multiple properties filtering. You can check our online SDK example about TwoPropertiesFilteringBehavior that shows how to achieve the previously described approach.

Hope this is helpful.

All the best,
Vladi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
AutoCompleteBox
Asked by
ITA
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Share this question
or