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

Memory Gradually increasing when navigating one page to another page

7 Answers 97 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
muralidhar
Top achievements
Rank 1
muralidhar asked on 03 Nov 2011, 07:33 AM
Hi,

I am using Q2 2011 SP1 version of telerik controls in my application and when i move from one page to another page and when i keep my application open for several hours then memory is gradually getting increased.

Could you please help me in this regard.
Thanks ..
Muralidhar

7 Answers, 1 is accepted

Sort by
0
Aaron
Top achievements
Rank 1
answered on 02 Dec 2011, 07:44 PM
I'm having this issue as well. Same version.

EDIT: Adding code below. It's quite severe. 20MB per page change.

<telerik:RadGridView Grid.Row="0" HorizontalGridLinesBrush="#FF00203A"  VerticalGridLinesBrush="Transparent" Foreground="#FFD4D2D2"
         RowIndicatorVisibility="Collapsed" x:Name="ResearchRadGrid" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" 
         d:LayoutOverrides="Width" ItemsSource="{Binding ResearchItems}" AutoGenerateColumns="False" IsReadOnly="True" Margin="0">
  
  <telerik:RadGridView.Columns>
    <telerik:GridViewDataColumn Header="Subject" DataMemberBinding="{Binding PimcoAMCARSSubject}" Width="3*"/>
    <telerik:GridViewDataColumn Header="Ticker" DataMemberBinding="{Binding PimcoAMCARSTicker}" Width="65"/>
    <telerik:GridViewDataColumn Header="Company" DataMemberBinding="{Binding PimcoAMCARSCompany}" Width="2*"/>
    <telerik:GridViewDataColumn Header="From" DataMemberBinding="{Binding PimcoAMCARSCreatedBy}" Width="1.5*"/>
    <telerik:GridViewDataColumn Header="Date" DataMemberBinding="{Binding Created}" DataFormatString="{}{0:g}" Width="130"/>
    <telerik:GridViewDataColumn Header="Reason" DataMemberBinding="{Binding PimcoAMCARSReason}" Width="2*"/>
    ...
  </telerik:RadGridView.Columns>
</telerik:RadGridView>
<telerik:RadDataPager PageSize="{Binding ResearchItems.PageSize}" Grid.Row="1" Source="{Binding Items, ElementName=ResearchRadGrid}" x:Name="ResearchItemPager" />
0
Vlad
Telerik team
answered on 05 Dec 2011, 08:13 AM
Hi,

 Can you post more info about ResearchItems? Can you replace the grid with standard SIlverlight DataGrid to see what will be the result? Do you have any implicit styles for RadGridView in your application? Any custom themes?

Regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Aaron
Top achievements
Rank 1
answered on 05 Dec 2011, 07:04 PM
ResearchItems is a PagedCollectionView. Except for "Date", every member of an individual ResearchItem is a string. Date is a DateTime.

There is a custom theme but it's simply a straight copy/paste from the "ExpressionDark" theme provided then replacing the colors.

I changed to a regular silverlight DataGrid and while memory went up - it seemed to be reclaimed rather quickly.

It seems to be directly related to the number of rows in the display changing. I changed my pagesize to 25 instead of 50 and it cut the memory hike in half (~10MB instead of ~20MB). 
0
Vlad
Telerik team
answered on 06 Dec 2011, 07:41 AM
Hello,

 Can you try to remove the custom theme temporary to see what will be the result? 

All the best,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Aaron
Top achievements
Rank 1
answered on 07 Dec 2011, 05:58 PM
I switched to Windows7Theme... it got worse. Memory usage went up by 30MB every time I navigated to another page instead of 20MB.
0
Vlad
Telerik team
answered on 08 Dec 2011, 08:26 AM
Hi,

 Please open support ticket and send us an example project where we can replicate your scenario and these problems. 

Regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Aaron
Top achievements
Rank 1
answered on 09 Dec 2011, 09:53 PM
One of the things that slipped my mind when posting was one of the columns I was using actually wasn't a string. It was a celltemplate that had binding via a bindinghelper. That was the cause of the issue. 
Tags
General Discussions
Asked by
muralidhar
Top achievements
Rank 1
Answers by
Aaron
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or