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

Strategy for binding to a very large collection?

2 Answers 104 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Patrick Holloway
Top achievements
Rank 1
Patrick Holloway asked on 21 Oct 2009, 11:39 PM
I have a combo box which I need to bind to a collection of (don't laugh) 5000+ items. As you might expect, performance goes straight to heck. I am curious as to whether anyone else has faced this scenario and how you dealt with it. I realize that this may not be a UI thing; however, would it be possible to use some sort of paging in conjunction with the Telerik controls while still supporting some sort of input lookup (e.g. user types "foo" into control, we fetch a chunk of data which starts with those characters)?

Just looking for ideas, but complete solutions are always welcome ;)

-p

2 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 22 Oct 2009, 06:54 AM
Hello Patrick,

I have a blog post, demonstrating the same scenario as yours:
http://blogs.telerik.com/valerihristov/posts/08-12-04/auto-complete_combobox_with_wcf_service_and_radcontrols_for_silverlight.aspx

Other option, in case you already have all data on the client, would be to set ItemsPanel of RadComboBox to be VirtualizedStackPanel:
<telerikInput:RadComboBox ...>
<telerikInput:RadComboBox.ItemsPanel>
    <ItemsPanelTemplate>
        <VirtualizedStackPanel />
    </ItemsPanelTemplate>
</telerikInput:RadComboBox.ItemsPanel>
</telerikInput:RadComboBox>

This way the combo will work just fine with 5000 or more items.

Greetings,
Valeri Hristov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Patrick Holloway
Top achievements
Rank 1
answered on 23 Oct 2009, 01:01 AM
Great! Thanks Valeri!

-p
Tags
ComboBox
Asked by
Patrick Holloway
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Patrick Holloway
Top achievements
Rank 1
Share this question
or