<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: GridDestroy method does not clear all memory</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/griddestroy-method-does-not-clear-all-memory</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/bugs/griddestroy-method-does-not-clear-all-memory/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>zebra on GridDestroy method does not clear all memory</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/griddestroy-method-does-not-clear-all-memory#p26049</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/griddestroy-method-does-not-clear-all-memory#p26049</guid>
        	        	<description><![CDATA[<p>I dont have trouble with delRowData command.  Check function arguments.</p>
<div id="gt-res-content" class="almost_half_cell"></div>
]]></description>
        	        	<pubDate>Fri, 02 Mar 2012 08:33:33 +0200</pubDate>
        </item>
        <item>
        	<title>lilibet on GridDestroy method does not clear all memory</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/griddestroy-method-does-not-clear-all-memory#p26046</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/griddestroy-method-does-not-clear-all-memory#p26046</guid>
        	        	<description><![CDATA[<p>Hi Zebra,</p>
</p>
<p>Thank you very much! I tested the latest code you supplied. There is no leak anymore once I destroy the table.</p>
<p>But now by using your code, I find another issue. Once I called the "delRowData" method, I got the following error:</p>
<p>a(E, d).closest("table.ui-jqgrid-btable")[0] is undefined</p>
<p>Could you please help me find what&#39;s wrong with it?</p>
<p>Thanks again.</p>
]]></description>
        	        	<pubDate>Fri, 02 Mar 2012 04:48:55 +0200</pubDate>
        </item>
        <item>
        	<title>tony on GridDestroy method does not clear all memory</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/griddestroy-method-does-not-clear-all-memory#p26042</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/griddestroy-method-does-not-clear-all-memory#p26042</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Can some one give me a link to this so commented issue?</p>
<p>Thank you.</p>
</p>
<p>Kind Regards</p>
]]></description>
        	        	<pubDate>Thu, 01 Mar 2012 13:10:59 +0200</pubDate>
        </item>
        <item>
        	<title>zebra on GridDestroy method does not clear all memory</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/griddestroy-method-does-not-clear-all-memory#p26036</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/griddestroy-method-does-not-clear-all-memory#p26036</guid>
        	        	<description><![CDATA[<p>try <a href="http://rghost.ru/36776509" target="_blank">this</a>.&#160;</p>
]]></description>
        	        	<pubDate>Wed, 29 Feb 2012 17:40:51 +0200</pubDate>
        </item>
        <item>
        	<title>lilibet on GridDestroy method does not clear all memory</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/griddestroy-method-does-not-clear-all-memory#p25960</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/griddestroy-method-does-not-clear-all-memory#p25960</guid>
        	        	<description><![CDATA[<p>Hi zebra,</p>
<p>I&#39;ve tried to replace all event and commented out window.onload, and also tried replace the file by your code. But nothing was working for me, the memory still leaking.</p>
<p>I&#39;m keep looking for the solutions.</p>
<p>Thanks</p>
]]></description>
        	        	<pubDate>Thu, 16 Feb 2012 07:23:25 +0200</pubDate>
        </item>
        <item>
        	<title>zebra on GridDestroy method does not clear all memory</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/griddestroy-method-does-not-clear-all-memory#p25894</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/griddestroy-method-does-not-clear-all-memory#p25894</guid>
        	        	<description><![CDATA[<p>Replaced all event mouseup / mousemove a document on "gbox_" + grid_id and commented out events window.onload and leaks disappeared. Try my code. <a href="http://rghost.ru/36409370" target="_blank">download</a></p></p>
]]></description>
        	        	<pubDate>Wed, 08 Feb 2012 15:58:24 +0200</pubDate>
        </item>
        <item>
        	<title>zebra on GridDestroy method does not clear all memory</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/griddestroy-method-does-not-clear-all-memory#p25887</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/griddestroy-method-does-not-clear-all-memory#p25887</guid>
        	        	<description><![CDATA[<p>I also interested in solution of this problem. I have tested leak on following example:</p>
<p>var count = 0, timeout, elem, id = 0;<br />(function() {<br />&#160;&#160;&#160; if(id) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#&#39; + id).jqGrid(&#39;GridDestroy&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;$(&#39;#&#39; + id).remove();<br />&#160;&#160;&#160; }<br />&#160;&#160; &#160;console.log(count++);<br />&#160;&#160; &#160;id = &#39;i&#39; + count;<br />&#160;&#160;&#160; $(&#39;body&#39;).append(&#39;&#60;table id="&#39; + id + &#39;"&#62;&#60;/table&#62;&#39;);</p>
<p>&#160;&#160; &#160;$(&#39;#&#39; + id).jqGrid({ datatype: "local", height: 250, colNames:[&#39;Inv No&#39;], colModel:[ {name:&#39;id&#39;,index:&#39;id&#39;, width:60, sorttype:"int"} ]});<br />&#160;&#160; &#160;<br />&#160;&#160; &#160;timeout = setTimeout(arguments.callee, 300);<br />}());</p></p>
]]></description>
        	        	<pubDate>Wed, 08 Feb 2012 01:36:52 +0200</pubDate>
        </item>
        <item>
        	<title>lilibet on GridDestroy method does not clear all memory</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/griddestroy-method-does-not-clear-all-memory#p25786</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/griddestroy-method-does-not-clear-all-memory#p25786</guid>
        	        	<description><![CDATA[<p>Hi all,</p>
<p>I&#39;m currently face a memory leak problem. When I simply create a grid then call &#39;GridDestroy&#39; method to remove it, under IE there is around 1M memory cannot be released.</p>
<p>The following are the demo code:</p>
<p>&#60;head&#62;<br />&#160; &#60;script src="../../../javascripts/core/jquery-1.7.1.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160; &#60;script src="../../../javascripts/core/table/jquery.jqGrid.src.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160; &#60;script&#62;<br />&#160;&#160; &#160;&#160;&#160; var load = function() {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var text = &#39;&#60;table id="jggrid-0"&#62;&#60;/table&#62;&#39;;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var contain = document.getElementById(&#39;container&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;contain.innerHTML = text;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var tableData = [<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;ATT1&#39;,dataType:&#39;STRING&#39;}<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ];<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var settings = {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;datatype: "local",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colNames:[&#39;Name&#39;,&#39;Type&#39;],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colModel:[<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;name&#39;,width:160},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;dataType&#39;,width:110}<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;keyColumn:&#39;name&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;data: tableData<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;};<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$(&#39;#jggrid-0&#39;).jqGrid(settings); <br />&#160;&#160; &#160;&#160;&#160; };<br />&#160;&#160; &#160;&#160;&#160; var destroy = function(){<br />&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$(&#39;#jggrid-0&#39;).jqGrid(&#39;GridDestroy&#39;);<br />&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$(&#39;#container&#39;).find(&#39;table&#39;).remove();<br />&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;document.getElementById(&#39;container&#39;).innerHTML = "";<br />&#160;&#160; &#160;&#160;&#160; };<br />&#160; &#60;/script&#62;<br />&#60;/head&#62;<br />&#60;body&#62;<br />&#160;&#160; &#160;&#60;h1&#62;table memory leak test&#60;/h1&#62;<br />&#160;&#160; &#160;&#60;div&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;Iterations:<br />&#160;&#160; &#160;&#160;&#160; &#160;&#60;span id="repeats"&#62;&#60;/span&#62;<br />&#160;&#160; &#160;&#60;/div&#62;<br />&#160;&#160; &#160;&#60;button id="button1" onclick=&#39;load()&#39;&#62;Load&#60;/button&#62;<br />&#160;&#160; &#160;&#60;button id="button2" onclick=&#39;destroy()&#39;&#62;Destroy&#60;/button&#62;<br />&#160;&#160; &#160;&#60;div id="container"&#62;<br />&#160;&#160; &#160;&#60;/div&#62;<br />&#160;&#160; &#160;&#60;div id="GC" class="hidden"&#62;&#60;/div&#62;<br />&#60;/body&#62;</p>
<p>When first time load the page then click &#39;load&#39; button, the memory increased around 5M. Click on &#39;destroy&#39; button after, around 4M memory released, but 1M remain. If keep click &#39;load&#39;/&#39;destroy&#39; again and again, then each load taken extra 200Kb memory. All the test has been done under IE8.</p>
<p>I tried all different versions of the jqgrid from 4.1.1 to 4.3.1, the result are same. And if push more data in table or add more columns the leaks becomes bigger.</p>
<p>Is anyone get the same problem and have any solution for it? Thanks.</p>
]]></description>
        	        	<pubDate>Wed, 25 Jan 2012 02:43:42 +0200</pubDate>
        </item>
</channel>
</rss>