<?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: 3.7.1 tree grid slow to expand or collapse nodes</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes</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/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>waiting on 3.7.1 tree grid slow to expand or collapse nodes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes#p20500</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes#p20500</guid>
        	        	<description><![CDATA[<blockquote>
<p>tony said:</p>
<p>For the column headers and other duplicate ids we can fix these, but the big questions is what to do with the rows ids?</p>
<p>Example: I have a table with primary keys 1,2,3.. and another table with the same primary keys numbering due of using the autoincremet property and I want to use these keys when I do CRUD operations.</p>
<p>In the same time I need to display both grids in one page - so the question is: how we can make these rows uniquie and in the same time to use the primary keys value</p>
</blockquote>
<hr />
<p>Hello Tony,</p>
<p>In my option, i should make it by this way:</p>
<p>use grid-container-id (eg. &#39;treegrid&#39;) as prefix of rows ids (eg. &#39;treegrid_1/treegrid_2/treegrid_3&#39;). when CRUD then substr the prefix -- this action can be done by client side before starting post, or by server side after receive the post data (must post the prefix&#160; as individul key:value&#160; togather)</p>
<p>waiting</p>
]]></description>
        	        	<pubDate>Wed, 27 Oct 2010 05:24:40 +0300</pubDate>
        </item>
        <item>
        	<title>aurelien.pernoud on 3.7.1 tree grid slow to expand or collapse nodes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes#p20360</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes#p20360</guid>
        	        	<description><![CDATA[<p>Hello tony,</p>
<p>did you by any chance have a look at optimizing treegrid (not only expandRow and collapseRow, but also loading) ?</p>
<p>I&#39;ve tried 3.8 version with latest jQuery UI but except the expandRow and collapseRow that are indeed really slower (we used 3.6.4 before), loading is the same.</p>
<p>Thanks for your feedback.</p>
<p>Aur&#233;lien</p>
]]></description>
        	        	<pubDate>Tue, 19 Oct 2010 11:39:09 +0300</pubDate>
        </item>
        <item>
        	<title>tony on 3.7.1 tree grid slow to expand or collapse nodes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes#p18204</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes#p18204</guid>
        	        	<description><![CDATA[<p>Hello Les,</p>
<p>The same will hapen if we do the change.</p>
<p>Instead I have begin a serious research on treeGrid and we will increase the speed .</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 25 Jun 2010 16:38:40 +0300</pubDate>
        </item>
        <item>
        	<title>Les on 3.7.1 tree grid slow to expand or collapse nodes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes#p18203</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes#p18203</guid>
        	        	<description><![CDATA[<p>Tony,</p>
</p>
<p>Perhaps you will need to make some tough decisions and brake backward compatibility in order to fix the markup.</p>
</p>
<p>Right now we are not able to upgrade to 3.7.1, and it&#39;s not because of the duplicate ids but because of the JS patch that you added to guard against the duplicate ids.</p>
</p>
<p>Les</p>
]]></description>
        	        	<pubDate>Fri, 25 Jun 2010 16:10:15 +0300</pubDate>
        </item>
        <item>
        	<title>tony on 3.7.1 tree grid slow to expand or collapse nodes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes#p18202</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes#p18202</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks Les. Absolutley you are right, but if we fix this, nobody can continue to use the new versions &#8211; they should rewrite your code from the beginning.</p>
<p>For the column headers and other duplicate ids we can fix these, but the big questions is what to do with the rows ids?</p>
<p>Example: I have a table with primary keys 1,2,3.. and another table with the same primary keys numbering due of using the autoincremet property and I want to use these keys when I do CRUD operations.</p>
<p>In the same time I need to display both grids in one page - so the question is: how we can make these rows uniquie and in the same time to use the primary keys values?</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 25 Jun 2010 15:58:18 +0300</pubDate>
        </item>
        <item>
        	<title>Les on 3.7.1 tree grid slow to expand or collapse nodes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes#p18200</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes#p18200</guid>
        	        	<description><![CDATA[<p>Tony,</p>
</p>
<p>I just wanted to point out that by HTML spec element IDs must be unique in a document</p>
</p>
<p><a href="http://www.w3.org/TR/html401/struct/global.html#h-7.5.2" rel="nofollow" target="_blank"><a href="http://www.w3.org/TR/html401/s" rel="nofollow">http://www.w3.org/TR/html401/s</a>.....ml#h-7.5.2</a></p>
</p>
<p>I&#39;m painfully aware that the jqGrid will create elements with duplicate ids (not only in rows but also in column headers) when there are two grids populated with the same data.</p>
</p>
<p>I hope you realize that this is a really bad design. &#160;Right now you have <strong>two problem</strong>s: the markup is still bad and the grid is much less scalable because you added an inefficient piece of JavaScript to guard against the bad html.</p>
</p>
<p>I suggest instead of introducing new features, you concentrate on fixing the underlying architecture.&#160;</p>
</p>
<p>Les</p>
]]></description>
        	        	<pubDate>Fri, 25 Jun 2010 15:47:59 +0300</pubDate>
        </item>
        <item>
        	<title>tony on 3.7.1 tree grid slow to expand or collapse nodes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes#p18176</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes#p18176</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>First of all thank you very much for the investigations and recommendations.</p>
<p>I&#39;m ready to do this, but imagine that you have two grids on the same page. It is quite possible thet both have same id,</p>
<p>in this case the collapsing and expanding maybe will not work, becouse it will depend which id will be find first.</p>
</p>
<p>Will see how to improve this.</p>
<p>Best Regards</p>
<p>and thanks again</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 25 Jun 2010 10:06:37 +0300</pubDate>
        </item>
        <item>
        	<title>Les on 3.7.1 tree grid slow to expand or collapse nodes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes#p18098</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes#p18098</guid>
        	        	<description><![CDATA[<p>I found post this which explains that passing a context will slow things down when query is an ID.</p>
<p><a href="http://stackoverflow.com/questions/2421782/preformance-of-jquery-selector-with-context" rel="nofollow" target="_blank"><a href="http://stackoverflow.com/quest" rel="nofollow">http://stackoverflow.com/quest</a>.....th-context</a></p>
]]></description>
        	        	<pubDate>Mon, 21 Jun 2010 05:00:17 +0300</pubDate>
        </item>
        <item>
        	<title>Les on 3.7.1 tree grid slow to expand or collapse nodes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes#p18097</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes#p18097</guid>
        	        	<description><![CDATA[<p>The same change can be made in 3.7.1 in expandNode() and collapseNode() - don&#39;t provide context when the query is by id.</p>
</p>
<p>I made this change and now performance is the same as in 3.6.5.</p>
]]></description>
        	        	<pubDate>Mon, 21 Jun 2010 04:48:50 +0300</pubDate>
        </item>
        <item>
        	<title>Les on 3.7.1 tree grid slow to expand or collapse nodes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes#p18095</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes#p18095</guid>
        	        	<description><![CDATA[<p>Tony,</p>
</p>
<p>Performance of expandRow() and collapseRow() in 3.7.1 will improve if you remove the context, see below.</p>
</p>
<p>The context is not needed because the query (by ID) maps almost directly to document.getElementById.</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4193' value='Select Code' data-codeid='sfcode4193' /></p>
<div class='sfcode' id='sfcode4193'>
<p>collapseRow : function (record) {</p>
<p>...</p>
<p>//$(&#34;#&#34;+id,$t.grid.bDiv).css(&#34;display&#34;,&#34;none&#34;);</p>
<p>$(&#34;#&#34;+id).css(&#34;display&#34;,&#34;none&#34;);</p>
</p>
<p>expandRow: function (record){</p>
<p>...</p>
<p>//$(&#34;#&#34;+id,$t.grid.bDiv).css(&#34;display&#34;,&#34;&#34;);</p>
<p>$(&#34;#&#34;+id).css(&#34;display&#34;,&#34;&#34;);</p>
</div>
]]></description>
        	        	<pubDate>Mon, 21 Jun 2010 04:08:53 +0300</pubDate>
        </item>
        <item>
        	<title>Les on 3.7.1 tree grid slow to expand or collapse nodes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes#p18091</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes#p18091</guid>
        	        	<description><![CDATA[<p>Tony,</p>
</p>
<p>I did some more testing and I have measurements taken on another faster computer.</p>
</p>
<p>I inserted console.tiime and console.timeEnd in this click handler in 3.6.5 and 3.7.1 (Firefox 3.6.3 and Win XP)</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6939' value='Select Code' data-codeid='sfcode6939' /></p>
<div class='sfcode' id='sfcode6939'>$(&#34;.treeclick&#34;,row).bind(&#34;click&#34;,function(e){</div>
</p>
<p>See the results on pictures (3.7.1 is 10 times slower)</p>
</p>
<p>jqGrid 3.6.5</p>
<p><a href="http://img191.imageshack.us/img191/9291/tree365.png" rel="nofollow" target="_blank"><a href="http://img191.imageshack.us/im" rel="nofollow">http://img191.imageshack.us/im</a>.....ree365.png</a></p>
</p>
<p>jqGrid 3.7.1</p>
<p><a href="http://img217.imageshack.us/img217/7056/treew.png" rel="nofollow" target="_blank"><a href="http://img217.imageshack.us/im" rel="nofollow">http://img217.imageshack.us/im</a>...../treew.png</a></p>
</p>
<p>I&#39;d like to work with you to resolve this issue. &#160;Please let me know what else I can do.&#160;</p>
]]></description>
        	        	<pubDate>Sun, 20 Jun 2010 18:03:19 +0300</pubDate>
        </item>
        <item>
        	<title>tony on 3.7.1 tree grid slow to expand or collapse nodes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes#p18037</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes#p18037</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I do not see such problem, or maybe my computer is not like your that you test.</p>
<p>Also I will try with more nodes.</p>
</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sun, 20 Jun 2010 09:29:01 +0300</pubDate>
        </item>
        <item>
        	<title>Les on 3.7.1 tree grid slow to expand or collapse nodes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes#p17998</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes#p17998</guid>
        	        	<description><![CDATA[<p>Tony,</p>
</p>
<p>I see that you made some code changes in the way tree grid row expand and collapse in 3.7.1. &#160;I&#39;m almost certain this is the cause of performance degradation.</p>
</p>
<p>The problem is easy to reproduce. &#160;Just try to access the jqGrid demo application:</p>
</p>
<p><a href="http://trirand.com/blog/jqgrid/jqgrid.html" rel="nofollow" target="_blank"><a href="http://trirand.com/blog/jqgrid" rel="nofollow">http://trirand.com/blog/jqgrid</a>.....qgrid.html</a></p>
</p>
<p>Click for instance on "New in Version 3.5". &#160;The demo application is using 3.7.1 and you will see that the rows expand and collapse slowly with just 9 children. &#160;This used to be fast in the previous 3.6.5 version.</p>
</p>
<p>Majority of my users use old Pentium laptops (Win XP and IE7), which I used for testing.</p>
</p>
<p>I you want I can upload a test application. &#160;It&#39;s rather large but very easy to install.</p></p>
]]></description>
        	        	<pubDate>Thu, 17 Jun 2010 15:48:43 +0300</pubDate>
        </item>
        <item>
        	<title>tony on 3.7.1 tree grid slow to expand or collapse nodes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes#p17992</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes#p17992</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks for considering this. Also we make the tree grid in mind that this way it will be faster!?!</p>
<p>Since it is a very difficult to determine where the problem is, could you please send me a link to the problem,</p>
<p>so I can see what is happen.</p>
<p>Thank you</p>
</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 17 Jun 2010 13:22:41 +0300</pubDate>
        </item>
        <item>
        	<title>Les on 3.7.1 tree grid slow to expand or collapse nodes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes#p17973</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/3-7-1-tree-grid-slow-to-expand-or-collapse-nodes#p17973</guid>
        	        	<description><![CDATA[<p>I just upgraded from 3.6.5 to 3.7.1 and I see a big boo-boo. <img class="spSmiley" style="margin:0" title="Cry" src="/blog/wp-content/forum-smileys/sf-cry.gif" alt="Cry" /></p>
</p>
<p>When you click a tree node it expands or collapses much slower compared to the previous release.</p>
</p>
<p>I see a large difference in IE7. &#160;It feels really slugish.</p>
]]></description>
        	        	<pubDate>Wed, 16 Jun 2010 17:43:36 +0300</pubDate>
        </item>
</channel>
</rss>