<?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: True scrolling Rows loads data too often</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/true-scrolling-rows-loads-data-too-often</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/true-scrolling-rows-loads-data-too-often/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Klaus on True scrolling Rows loads data too often</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/true-scrolling-rows-loads-data-too-often#p16536</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/true-scrolling-rows-loads-data-too-often#p16536</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>look at this post: <a href="http://www.trirand.com/blog/?page_id=393/bugs/true-scrolling-problems/" rel="nofollow" target="_blank"><a href="http://www.trirand.com/blog/?p" rel="nofollow">http://www.trirand.com/blog/?p</a>.....-problems/</a></p>
<p>... using a very little scrollTimeout should solve the problem.</p>
<p>Kind regards,<br />Klaus.</p>
]]></description>
        	        	<pubDate>Mon, 19 Apr 2010 15:16:06 +0300</pubDate>
        </item>
        <item>
        	<title>tony on True scrolling Rows loads data too often</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/true-scrolling-rows-loads-data-too-often#p16452</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/true-scrolling-rows-loads-data-too-often#p16452</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Could you please provide a link to the problem. If you do this please include the nonminified (i.e development) version from GitHub.</p>
<p>Thank you.</p>
</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 16 Apr 2010 16:24:27 +0300</pubDate>
        </item>
        <item>
        	<title>frodeo on True scrolling Rows loads data too often</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/true-scrolling-rows-loads-data-too-often#p16425</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/true-scrolling-rows-loads-data-too-often#p16425</guid>
        	        	<description><![CDATA[<p>I still have the same problem after applying the patch.</p>
<p>Regards<br />Frode Oldervoll</p>
]]></description>
        	        	<pubDate>Thu, 15 Apr 2010 10:31:45 +0300</pubDate>
        </item>
        <item>
        	<title>tony on True scrolling Rows loads data too often</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/true-scrolling-rows-loads-data-too-often#p16343</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/true-scrolling-rows-loads-data-too-often#p16343</guid>
        	        	<description><![CDATA[<p>Hello Frode,</p>
<p>Thanks for this. I just fix some things when we are with scroll:1. The fix is in GitHub.</p>
<p>If you want you can test it. Hope that at end the problem is fixed. You can test it.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 10 Apr 2010 14:59:17 +0300</pubDate>
        </item>
        <item>
        	<title>frodeo on True scrolling Rows loads data too often</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/true-scrolling-rows-loads-data-too-often#p16335</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/true-scrolling-rows-loads-data-too-often#p16335</guid>
        	        	<description><![CDATA[<p>I still have problems with scroll:1&#160; &#8211; the first 9 times I click the down-arrow in the scrollbar the grid loads data from the server. I use the exact same script as in the "True scrolling Grid" example, and  the data returned from the server is almost equal to the data returned from bigset.php.</p>
<p>I see the following when I debug the code (from grid.base.js):</p>
<p style="padding-left: 30px;">populateVisible: function() {</p>
<div id="sb8-L256" class="sourceRow" style="padding-left: 30px;"><a class="sourceLine" target="_blank"> 256</a> if  (grid.timer) clearTimeout(grid.timer);</div>
<div id="sb8-L257" class="sourceRow " style="padding-left: 30px;"><a class="sourceLine" target="_blank"> 257</a> grid.timer =  null;</div>
<div id="sb8-L258" class="sourceRow " style="padding-left: 30px;"><a class="sourceLine" target="_blank"> 258</a></div>
<div id="sb8-L259" class="sourceRow" style="padding-left: 30px;"><a class="sourceLine" target="_blank"> 259</a> var dh =  $(grid.bDiv).height();</div>
<div id="sb8-L260" class="sourceRow" style="padding-left: 30px;"><a class="sourceLine" target="_blank"> 260</a> if (!dh)  return;</div>
<div id="sb8-L261" class="sourceRow" style="padding-left: 30px;"><a class="sourceLine" target="_blank"> 261</a> var table =  $("table:first", grid.bDiv);</div>
<div id="sb8-L262" class="sourceRow" style="padding-left: 30px;"><a class="sourceLine" target="_blank"> 262</a> var rows =  $("&#62; tbody &#62; tr:visible:first", table);</div>
<div id="sb8-L263" class="sourceRow" style="padding-left: 30px;"><a class="sourceLine" target="_blank"> 263</a> var rh =  rows.outerHeight() &#124;&#124; grid.prevRowHeight;</div>
<div id="sb8-L264" class="sourceRow" style="padding-left: 30px;"><a class="sourceLine" target="_blank"> 264</a> if (!rh)  return;</div>
<div id="sb8-L265" class="sourceRow" style="padding-left: 30px;"><a class="sourceLine" target="_blank"> 265</a> grid.prevRowHeight = rh;</div>
<div id="sb8-L266" class="sourceRow" style="padding-left: 30px;"><a class="sourceLine" target="_blank"> 266</a> var rn =  p.rowNum;</div>
<div id="sb8-L267" class="sourceRow" style="padding-left: 30px;"><a class="sourceLine" target="_blank"> 267</a> var scrollTop  = grid.scrollTop = grid.bDiv.scrollTop;</div>
<div id="sb8-L268" class="sourceRow" style="padding-left: 30px;"><strong><a class="sourceLine" target="_blank"> 268</a> var ttop =  Math.round(table.position().top) &#8211; scrollTop;</strong></div>
<div id="sb8-L269" class="sourceRow" style="padding-left: 30px;"><a class="sourceLine" target="_blank"><strong> </strong>269</a> var tbot =  ttop + table.height();</div>
<div id="sb8-L270" class="sourceRow" style="padding-left: 30px;"><a class="sourceLine" target="_blank"> 270</a> var div = rh *  rn;</div>
<div id="sb8-L271" class="sourceRow" style="padding-left: 30px;"><a class="sourceLine" target="_blank"> 271</a> var page,  npage, empty;</div>
<div id="sb8-L272" class="sourceRow" style="padding-left: 30px;"><a class="sourceLine" target="_blank"> 272</a> if (ttop  &#60;= 0 &#38;&#38; tbot &#60; dh &#38;&#38;</div>
<div id="sb8-L273" class="sourceRow" style="padding-left: 30px;"><a class="sourceLine" target="_blank"> 273</a> (p.lastpage==null&#124;&#124;parseInt((tbot + scrollTop + div &#8211; 1) / div,10) &#60;  p.lastpage))</div>
<div id="sb8-L274" class="sourceRow" style="padding-left: 30px;"><a class="sourceLine" target="_blank"> 274</a> {</div>
<div id="sb8-L275" class="sourceRow" style="padding-left: 30px;"><a class="sourceLine" target="_blank"> 275</a> npage =  parseInt((dh &#8211; tbot + div &#8211; 1) / div,10);</div>
<div id="sb8-L276" class="sourceRow " style="padding-left: 30px;"><a class="sourceLine" target="_blank"> 276</a> if (tbot  &#62;= 0 &#124;&#124; npage &#60; 2 &#124;&#124; p.scroll === true) {</div>
<div id="sb8-L277" class="sourceRow " style="padding-left: 30px;"><a class="sourceLine" target="_blank"> 277</a> page =  Math.round((tbot + scrollTop) / div) + 1;</div>
<div id="sb8-L278" class="sourceRow " style="padding-left: 30px;"><a class="sourceLine" target="_blank"> 278</a> ttop =  -1;</div>
<div id="sb8-L279" class="sourceRow" style="padding-left: 30px;"><a class="sourceLine" target="_blank"> 279</a> } else {</div>
<div id="sb8-L280" class="sourceRow " style="padding-left: 30px;"><a class="sourceLine" target="_blank"> 280</a> ttop =  1;</div>
<div id="sb8-L281" class="sourceRow " style="padding-left: 30px;"><a class="sourceLine" target="_blank"> 281</a> }</div>
<div id="sb8-L282" class="sourceRow " style="padding-left: 30px;"><a class="sourceLine" target="_blank"> 282</a> }</div>
<div id="sb8-L283" class="sourceRow " style="padding-left: 30px;"><strong><a class="sourceLine" target="_blank"> 283</a> if (ttop &#62;  0) {</strong></div>
<div id="sb8-L284" class="sourceRow " style="padding-left: 30px;"><a class="sourceLine" target="_blank"><strong> </strong>284</a> page =  parseInt(scrollTop / div,10) + 1;</div>
<div id="sb8-L285" class="sourceRow " style="padding-left: 30px;"><a class="sourceLine" target="_blank"> 285</a> npage =  parseInt((scrollTop + dh) / div,10) + 2 &#8211; page;</div>
<div id="sb8-L286" class="sourceRow " style="padding-left: 30px;"><a class="sourceLine" target="_blank"> 286</a> empty =  true;</div>
<div id="sb8-L287" class="sourceRow" style="padding-left: 30px;"><a class="sourceLine" target="_blank"> 287</a> }</div>
<div id="sb8-L288" class="sourceRow" style="padding-left: 30px;"><a class="sourceLine" target="_blank"> 288</a></div>
<div id="sb8-L289" class="sourceRow" style="padding-left: 30px;"><strong><a class="sourceLine" target="_blank"> 289</a> if (npage) {</strong></div>
<div class="sourceRow"></div>
<div class="sourceRow">The first 9 times scrollTop has the following values: 14, 28, 42, 56, 70, 84, 98, 112, 126.</div>
<div class="sourceRow">while table.position().top() is 129, tbot is approx 1700 and dh is 255. This results in a positive value for ttop (line 268).</div>
<div class="sourceRow"></div>
<div class="sourceRow">The 10th time scrollTop is 140, which results in ttop = -10. Then the if-test in line 283 is false, npage is undefined and the if-test in line 289 is false. Which again results in the server call not beeing performed.</div>
<div class="sourceRow">I don&#39;t know the exact logic behind this, but it explains why I get a server call the first 9 times the scrollbar is clicked. What is wrong here?</div>
<div class="sourceRow"></div>
<div class="sourceRow">Regards</div>
<div class="sourceRow">Frode Oldervoll</div>
]]></description>
        	        	<pubDate>Fri, 09 Apr 2010 20:30:56 +0300</pubDate>
        </item>
        <item>
        	<title>wolis on True scrolling Rows loads data too often</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/true-scrolling-rows-loads-data-too-often#p15032</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/true-scrolling-rows-loads-data-too-often#p15032</guid>
        	        	<description><![CDATA[<p>Hi Frode,</p>
</p>
<p>I have not seen this behaviour when experimenting with scroll: 1.</p>
</p>
<p>I use a default definition like this:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6874' value='Select Code' data-codeid='sfcode6874' /></p>
<div class='sfcode' id='sfcode6874'>&#160; jQuery.extend(<br />&#160;&#160; jQuery.jgrid.defaults, { <br />&#160;&#160;&#160; altRows:true, <br />&#160;&#160;&#160; rowNum:40,<br />&#160;&#160;&#160; rowList:[],<br />&#160;&#160;&#160; sortorder: &#39;asc&#39;,<br />&#160;&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; autowidth: true,<br />&#160;&#160;&#160; hoverrows: true,<br />&#160;&#160;&#160; shrinkToFit: false,<br />&#160;&#160;&#160; gridview: false,<br />&#160;&#160;&#160; loadui: &#39;enable&#39;,<br />&#160;&#160;&#160; multiselect: false,<br />&#160;&#160;&#160; sortable: true,<br />&#160;&#160;&#160; scroll: 1<br />&#160;&#160; }<br />&#160; );</div>
<p>The jqGrid is resizable but generally only 10 rows show. Each time I scroll down so that the first blank row is visible, it does one request for more data.</p>
]]></description>
        	        	<pubDate>Mon, 22 Feb 2010 02:54:59 +0200</pubDate>
        </item>
        <item>
        	<title>frodeo on True scrolling Rows loads data too often</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/true-scrolling-rows-loads-data-too-often#p15022</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/true-scrolling-rows-loads-data-too-often#p15022</guid>
        	        	<description><![CDATA[<p>I have a grid based on the True scrolling Rows demo, ie "Scroll:1". I set the buffer to for instance 50 (rowNum:50) and have 20 visible rows (height:xxx). The problem is that the first 10 times I click the down-button on the scrollbar the grid asks the server for an update (and I get the "Loading ..." message). After the 10 initial loads the buffer is used correctly.</p>
<p>Anybody else seeing this bug? Is there a plan for it to be fixed?</p>
</p>
<p>Frode Oldervoll</p>
]]></description>
        	        	<pubDate>Sun, 21 Feb 2010 01:53:43 +0200</pubDate>
        </item>
</channel>
</rss>