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

ComboBox, Custom Search on different fields

2 Answers 175 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Michele
Top achievements
Rank 2
Michele asked on 15 Apr 2010, 10:08 AM
Hello,
Currently I've got a user control that has 3 dropdown, one for searching on a Dossier, one for searching on an account and one for searching on a description...
At the user control's load I get about 13000 items and store it into a collection, filtering it based on the user's input on a specific dropdown... this is not so user friendly as I would like...

My main problems are :
  • loading 13k items tooks some time
  • 3 dropdown are not so comfortable

My question is can I've a custom template on the dropdown for showing the data (and I think it's possible),and do a multiple search on the collection?

Can you provide me a sample?

Thanks
Paolo

2 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 15 Apr 2010, 03:48 PM
Hello Paolo,

You could create a custom ItemTemplate that displays the values of multiple properties in the data objects. To enable the text search of RadComboBox, however, you will have to create an additional property in the data object, that will combine the values of all needed properties. Then use the telerik:TextSearch.TextPath="the name of the new property" attached property to let RadComboBox use the new property.

The problem is that currently RadComboBox does not support filtering when its panel is VirtualizedStackPanel and this panel is needed if you want to display more than several hundred items without sacrifising performance. Attached is an example, that demonstrates how to create custom filtering, that has very good performance and behaves the same way as Google suggest. Please, note that you should unload the WPF project if you want to compile the Silverlight project and vice versa.

Best wishes,
Valeri Hristov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
CarlosLima
Top achievements
Rank 1
answered on 12 Dec 2010, 07:00 PM
Hi,

It is possible to group the results by category and have actions over them ?
Like the search component in the last fm web site .



Thanks in advance,

Hugo.
Tags
ComboBox
Asked by
Michele
Top achievements
Rank 2
Answers by
Valeri Hristov
Telerik team
CarlosLima
Top achievements
Rank 1
Share this question
or