<?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: Performance improvements for scrolling in grid</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/performance-improvements-for-scrolling-in-grid</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/feature-request/performance-improvements-for-scrolling-in-grid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Performance improvements for scrolling in grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/performance-improvements-for-scrolling-in-grid#p22592</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/performance-improvements-for-scrolling-in-grid#p22592</guid>
        	        	<description><![CDATA[<p>Thanks Klaus,</p>
<p>Make a better change (imho).</p>
<p>See here:</p>
<p><a href="https://github.com/tonytomov/jqGrid/commit/217fa14cbb1a804095cd78eeb595072c380b8191" target="_blank">https://github.com/tonytomov/jqGrid/commit/217fa14cbb1a804095cd78eeb595072c380b8191</a></p>
</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 29 Mar 2011 17:22:25 +0300</pubDate>
        </item>
        <item>
        	<title>Klaus on Performance improvements for scrolling in grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/performance-improvements-for-scrolling-in-grid#p22545</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/performance-improvements-for-scrolling-in-grid#p22545</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I&#39;ve detected performance problem when scrolling in big grids, because the browser checks every row if it&#39;s visible.</p>
<p>Could this be improved the following way, or are their any circumstances where this solution does not work?</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7354' value='Select Code' data-codeid='sfcode7354' /></p>
<div class='sfcode' id='sfcode7354'>
<p>populateVisible: function() {</p>
<p>&#160; ...</p>
<p>&#160; var table = $(&#34;table:first&#34;, grid.bDiv);</p>
<p>&#160; - var rows = $(&#34;&#62; tbody &#62; tr:gt(0):visible:first&#34;, table);<br />&#160; - var rh = rows.outerHeight() &#124;&#124; grid.prevRowHeight;</p>
<p>&#160; + var rows = $(&#34;&#62; tbody &#62; tr:eq(1)&#34;, table);<br />&#160; + var rh = rows.length ? (rows.outerHeight() &#124;&#124; grid.prevRowHeight) : grid.prevRowHeight;</p>
<p>&#160;&#160;&#160; // avoid slow selector (performance). Row 0 is the invisible &#34;jqgfirstrow&#34; <br />&#160;&#160;&#160; // so row 1 (eq(1)) is the first visible row, we can therefor optimize this selector <br />&#160;&#160;&#160; // and avoid numRowsInTable :visible checks which are very slow</p>
<p>&#160; ...</p>
</div>
<p>Or is there a better solution?</p>
</p>
<p>Kind regards,</p>
<p>Klaus.</p>
]]></description>
        	        	<pubDate>Fri, 25 Mar 2011 15:25:03 +0200</pubDate>
        </item>
</channel>
</rss>