ComboBox, Custom Search on different fields

3 posts, 0 answers
  1. Paolo
    Paolo avatar
    423 posts
    Member since:
    Jun 2009

    Posted 15 Apr 2010 Link to this post

    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. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 15 Apr 2010 Link to this post

    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.
  3. DevCraft banner
  4. CarlosLima
    CarlosLima avatar
    47 posts
    Member since:
    May 2010

    Posted 12 Dec 2010 Link to this post

    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.
Back to Top