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

RadGrid memory leak with oncommand and header width

3 Answers 76 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 25 May 2011, 12:32 AM
There is a memory leak when you have a RadGrid that uses client-side binding via setting the OnCommand client event along with a column that has HeaderStyle-Width equal to a percentage value. Explorer cpu usage was static at 13%, and memory was slowly growing. The issue was not reproducible in Chrome.

<telerik:RadGrid ID="rgvStatus" runat="server" GridLines="None" Skin="Outlook" ShowFooter="True" EnableViewState="false">
  <MasterTableView AutoGenerateColumns="False">
     <Columns>
       <telerik:GridBoundColumn HeaderText="Name" DataType="System.String" DataField="Name"
           UniqueName="Name" HeaderStyle-Width="40%" />
       <telerik:GridBoundColumn HeaderText="Task" DataType="System.String" DataField="Task"
           UniqueName="Task" HeaderStyle-Width="40%" />
       <telerik:GridDateTimeColumn HeaderText="Time Started" DataType="System.DateTime"
           DataFormatString="{0:t}" DataField="TimeStarted" UniqueName="TimeStarted" />
    </Columns>
  </MasterTableView>
  
  <ClientSettings>
    <Scrolling AllowScroll="true" UseStaticHeaders="true" ScrollHeight="250px" />
     <ClientEvents OnCommand="pageLoad" />
  </ClientSettings>
  
  <FilterMenu EnableImageSprites="False"></FilterMenu>
                      
  <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
  </HeaderContextMenu>
</telerik:RadGrid>

The OnCommand function does not have to do anything, it leaks regardless. I was able to work around the issue by using a pixel value for the column widths.


Nick

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 25 May 2011, 06:34 AM
Hello Nick,

I am not sure about the version that you are using. I Recommended you to upgrade to the new version which has some fixes on the issue.

Thanks,
Shinu.
0
Nick
Top achievements
Rank 1
answered on 25 May 2011, 03:01 PM
Shinu,

I apologize for not mentioning before, I believe I am using the latest version: v.2011.1.315.40. Has there been an update since then?

Nick
0
Pavlina
Telerik team
answered on 28 May 2011, 09:51 AM
Hi Nick,

The release history of the builds is available below:
http://www.telerik.com/products/aspnet-ajax/whats-new/release-history/q1-2011-sp2-version-2011-1-519.aspx

Best wishes,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Nick
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Nick
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or