Memory Leak when using excel like filtering?

4 posts, 0 answers
  1. Karsten Doering
    Karsten Doering avatar
    4 posts
    Member since:
    Dec 2005

    Posted 24 Oct Link to this post

    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
  2. Eyup
    Admin
    Eyup avatar
    3867 posts

    Posted 28 Oct Link to this post

    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.
  3. Karsten Doering
    Karsten Doering avatar
    4 posts
    Member since:
    Dec 2005

    Posted 28 Oct Link to this post

    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

  4. Eyup
    Admin
    Eyup avatar
    3867 posts

    Posted 31 Oct Link to this post

    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.
Back to Top