RadComboBox OUtOfMemory

3 posts, 0 answers
  1. theo
    theo avatar
    2 posts
    Member since:
    Feb 2011

    Posted 21 Feb 2011 Link to this post

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

    Posted 21 Feb 2011 Link to this post

    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!
  3. DevCraft banner
  4. theo
    theo avatar
    2 posts
    Member since:
    Feb 2011

    Posted 22 Feb 2011 Link to this post

    Awesome, Thanks for the quick response, worked like a charm!
Back to Top