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

Memory consumption on large collection

7 Answers 67 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dror
Top achievements
Rank 1
Dror asked on 09 Apr 2014, 08:05 AM
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?

7 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 09 Apr 2014, 08:11 AM
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.

 
0
Dror
Top achievements
Rank 1
answered on 09 Apr 2014, 08:47 AM
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
0
Dimitrina
Telerik team
answered on 09 Apr 2014, 01:57 PM
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.

 
0
Dror
Top achievements
Rank 1
answered on 09 Apr 2014, 06:16 PM
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
0
Dimitrina
Telerik team
answered on 10 Apr 2014, 06:31 AM
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.

 
0
Dror
Top achievements
Rank 1
answered on 10 Apr 2014, 06:56 AM
How do I send files through the forum?
0
Dimitrina
Telerik team
answered on 10 Apr 2014, 07:02 AM
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.

 
Tags
GridView
Asked by
Dror
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Dror
Top achievements
Rank 1
Share this question
or