Memory consumption on large collection

8 posts, 0 answers
  1. Dror
    Dror avatar
    7 posts
    Member since:
    Sep 2011

    Posted 09 Apr 2014 Link to this post

    Hello
         We've noticed on our application that showing a grid for large collections causese the application to use huge ammount of memory and throw OutOfMemory exception.

    We've created a demo project cotaining 5 million enties containing two string.
    Creating the data context raised memory consumption of the application to 450MB.
    Showing the window containing the RadGridView raised memory consumption to 800MB.
    All grid rows are set, no infinity/auto exists.

    Any ideas?
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 09 Apr 2014 Link to this post

    Hello,

    I can suggest you going through our online documentation on possible reasons why there would be degraded performance with RadGridView.

    Let me know if any of the points listed there help.

    Regards,
    Didie
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. Dror
    Dror avatar
    7 posts
    Member since:
    Sep 2011

    Posted 09 Apr 2014 in reply to Dimitrina Link to this post

    As far as I can see all the reported issues don't exist in our project

    this is the xaml we are using:
    <Window x:Class="ManyStudents.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    Title="MainWindow" Height="350" Width="525">
    <Grid>
    <Grid.RowDefinitions>
    <RowDefinition Height="250"/>
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
    <ColumnDefinition Width="400"/>
    </Grid.ColumnDefinitions>
    <telerik:RadGridView ItemsSource="{Binding AllStudents}" GroupRenderMode="Flat" Grid.Row="0" />
    </Grid>
    </Window>

    Thanks
       Dror
  4. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 09 Apr 2014 Link to this post

    Hi Dror,

    Indeed, it seems so.

    Generally RadGridView supports UI Virtualization and only the items in the View area should be actually realized. As you have not placed your GridView under a container that measures it with infinity, then it is not expected to run out of memory.

    May I ask you to share what is the version of RadControls you use? Furthermore, would you please test referencing ImplicitStyles and NoXaml binaries?

    Regards,
    Didie
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  5. Dror
    Dror avatar
    7 posts
    Member since:
    Sep 2011

    Posted 09 Apr 2014 in reply to Dimitrina Link to this post

    I've tested it with several versions, q2 2013 and q1 2014.


    I've tested with NoXaml and ImplicitStyles and got the same results

    Thanks
        Dror
  6. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 10 Apr 2014 Link to this post

    Hello Dror,

    May I ask you to send me a demo solution with your specific setup where I can observe the issue? You can take a look at this blog post for a reference on how to isolate an issue. 

    Regards,
    Didie
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  7. Dror
    Dror avatar
    7 posts
    Member since:
    Sep 2011

    Posted 10 Apr 2014 in reply to Dimitrina Link to this post

    How do I send files through the forum?
  8. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 10 Apr 2014 Link to this post

    Hello,

    You can open a new support ticket and attach it there. 

    Regards,
    Didie
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top