Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mond2000

Pages: [1]
1
Help for ParamQuery Pro / Re: Memory leak on refreshDataAndView ?
« on: February 08, 2016, 01:04:50 pm »
Thank you for your reply,
Our application requires an update of six grids each 2 seconds.
Any suggestion to avoid the mentioned problem is welcome.
Thank you for your help.

2
Help for ParamQuery Pro / Memory leak on refreshDataAndView ?
« on: February 07, 2016, 03:04:31 am »
Dear Sir,

I noticed, that the memory usage is increased on each call of refreshDataAndView or even refresh,

below, a sample code,
Thank you for your help.




/***************************/

<html>
    <head>
    <title>test</title>
   
   
    <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/themes/base/jquery-ui.css" />
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>   
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script>
   
    <!--PQ Grid files-->
    <link href="Lib/ParamQueryProVersion/pqgrid.min.css" rel="stylesheet" />
    <script src="Lib/ParamQueryProVersion/pqgrid.min.js"></script>

</head>
    <body style="overflow:auto; margin-left:0px;margin-top:0px;" id ="test"  >
    <div id="grid_array" style="margin:auto;"></div>

    <script>
        var data = [
            [1, 'Line 0','0'],
            [2, 'line 1','1'],
       [3, 'line 2','2']
         ];

        var obj = { width: 700, height: 300,  title: "Grid From Array",   numberCell:{resizable:true, title: "#"},
            editable: false,  scrollModel: { autoFit: true },  flexWidth: true,  showBottom:false,  resizable: true  };
       
        obj.colModel = [
            { title: "Rank", width: 100, dataType: "integer" },
            { title: "Line", width: 200, dataType: "string" },
            { title: "Num", width: 200, dataType: "integer" }
        ];
        obj.dataModel = { data: data };

        var $grid = $("#grid_array").pqGrid(obj);
        var k = 0;
       
        function Upd_Grid_1(k) {
            data[2][2] = k;
            $("#grid_array").pqGrid("refreshDataAndView");
           
            k = k + 1;
            setTimeout(function () { Upd_Grid_1(k); }, 10);
        }

        Upd_Grid_1(0);
    </script>
</body>
</html>

Pages: [1]