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>