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

Filter by multiple columns

2 Answers 69 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Ignas
Top achievements
Rank 1
Ignas asked on 19 Feb 2013, 07:26 AM
Hello,

Is it possible to filter the autocompletebox by several columns? 
And on the same topic - is it possible to use several columns in DisplayMemberPath (e.g. Artist + Song Name)?

2 Answers, 1 is accepted

Sort by
0
Ivo
Telerik team
answered on 21 Feb 2013, 01:17 PM
Hi Ignas,

Filtering by several columns can be achieved by overriding the FilteringBehavior class. In order to use several properties for DisplayMemberPath you will have to set DropDownItemTemplate and BoxesItemTemplate. You can find attached a sample project demonstrating both approaches.

Regards,
Ivo
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Ignas
Top achievements
Rank 1
answered on 22 Feb 2013, 06:51 AM
Thank you. 

I also found that overriding ToString() method helps with managing the way the item is being displayed.
Tags
AutoCompleteBox
Asked by
Ignas
Top achievements
Rank 1
Answers by
Ivo
Telerik team
Ignas
Top achievements
Rank 1
Share this question
or