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

Memory Leak when using excel like filtering?

3 Answers 94 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Karsten
Top achievements
Rank 1
Karsten asked on 24 Oct 2019, 07:29 AM
Hello,

it seems that there is a client side memory leak in the asp.net telerik controls. We tested this with 2019.3.1023 (the current release).
You can reproduce the leak also with the telerik demo:
https://demos.telerik.com/aspnet-ajax/grid/examples/functionality/filtering/excel-like-filtering/defaultcs.aspx

It seems to depend on the excel like filtering, so you have to use this demo. The memory leak doesn't exist in basic filtering.

Each time you make a postback, e.g. use the pager, the browser holds a reference of the "old" grid in memory. Because of this the browser seems to hold the old html elements (orphaned nodes).

Can you confirm the problem and is there a fix available?


Regards

3 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 28 Oct 2019, 07:55 AM

Hello Karsten,

 

This sounds odd and we did not happen to come across something like this before. I've tried to reproduce the issue but couldn't see any irregularities:
https://demos.telerik.com/aspnet-ajax/grid/examples/functionality/filtering/excel-like-filtering/defaultcs.aspx

I've tried with Chrome browser - do I need to check on another browser? Could you send us some sample screenshots or video for directions and what you are encountering on your side? Duplicate HTML nodes?

 

Regards,
Eyup
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Karsten
Top achievements
Rank 1
answered on 28 Oct 2019, 09:21 AM

Hello Eyup,

we tried with Google Chrome, only.

Here are some screenshots:

postback0.jpg/postback1.jpg/postback2.jpg/postback3.kpg (after load, after first, seconds and third postback)

As you can see, more and more grids are in the dom.

 

Here is the aspx code of a sample project we created. (I would have uploaded it, bit zip extension is not allowed):

<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>
 
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
 
<script type="text/javascript">
    function reloadPage() {
        console.log("reloadPage called!");
        var btn = document.getElementById("<%= btnPostBack.ClientID %>");
        btn.click();
    }
 
    var timer = window.setInterval(reloadPage, 5000);
</script>
 
<asp:UpdatePanel ID="updpnlOuter" runat="server" UpdateMode="Conditional">
<ContentTemplate>
 
<asp:Button ID="btnPostBack" runat="server" OnClick="btnPostBack_Click" style="display: none;" />
 
<asp:UpdatePanel ID="updpnlInner" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
 
        <telerik:RadGrid ID="grid" runat="server" AutoGenerateColumns="true" AllowFilteringByColumn="true" FilterType="HeaderContext" EnableHeaderContextFilterMenu="true" EnableHeaderContextMenu="true">
        </telerik:RadGrid>
    </ContentTemplate>
</asp:UpdatePanel>
 
</ContentTemplate>
</asp:UpdatePanel>
 
</asp:Content>

 

Regards

 

Karsten

0
Eyup
Telerik team
answered on 31 Oct 2019, 09:15 AM

Hello Karsten,

 

I've managed to reproduce the issue using the provided directions and snapshots. It will be logged as a bug in our system.

Thank you for bringing our attention to this issue. I've updated your Telerik points as a token of gratitude.

 

Regards,
Eyup
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Karsten
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Karsten
Top achievements
Rank 1
Share this question
or