This is a migrated thread and some comments may be shown as answers.
RadComboBox OUtOfMemory
2 Answers 11 Views
This is a migrated thread and some comments may be shown as answers.
theo
Top achievements
Rank 1
theo asked on 21 Feb 2011, 03:51 PM
Hi Guys,

I'm getting a System.OutOfMemory Exception with the below code, the lo.Entities is a List<DataRow> where DataRow is an entity with 20 Properties in. It returns about 3800items. Is it really possible that the combobox can't handle this amount of data and if so is there a work around?

We are in the process of changing all our controls to the telerik controls to keep it uniform etc. so I know this works without a hitch with the normal ComboBox.

Thanks in advance

code:

LoadOperation lo = (LoadOperation)sender;
CmbItems.ItemsSource = lo.Entities;

2 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 21 Feb 2011, 04:02 PM
Hello theo,

Try setting the ItemsPanel of RadComboBox to be VirtualizingStackPanel:
http://www.telerik.com/help/silverlight/radcombobox-howto-virtualization.html

Regards,
Valeri Hristov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
theo
Top achievements
Rank 1
answered on 22 Feb 2011, 06:49 AM
Awesome, Thanks for the quick response, worked like a charm!
Asked by
theo
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
theo
Top achievements
Rank 1
Share this question
or