<?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 Bug?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/true-scrolling-bug</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/help/true-scrolling-bug/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>monoclast on True Scrolling Bug?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/true-scrolling-bug#p15566</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/true-scrolling-bug#p15566</guid>
        	        	<description><![CDATA[<blockquote>
<p>tony said:</p>
<p>Hello,</p>
<p>It is up to developer how to do this. It is not a bug and the code in documentation is the code used into the demo</p>
<p>Regards</p>
<p>Tony</p>
</blockquote>
<hr />
<p>Well, since we can&#39;t persuade you to help, I looked at the code again with a fresh mind today, and I figured it out on my own. &#160;🙂</p>
<p>The&#160;<a href="/jqgridwiki/doku.php?id=wiki:first_grid" target="_blank">documentation says</a>:</p>
<p style="padding-left: 30px;"><strong>total</strong>: the total pages in the query</p>
<p style="padding-left: 30px;"><strong>records</strong>: the total records from the query</p>
<p>But this is misleading and incorrect. What is <em>should</em> say is:</p>
<p style="padding-left: 30px;"><strong>total</strong>: the total number of pages <em>in the entire data set</em></p>
<p style="padding-left: 30px;"><strong>records</strong>: the total number of records <em>in the entire data set</em></p>
<p>The phrase "in the query" is very misleading, because with "True Scrolling", you actually query the database for only a <em>small number of rows at a time</em>! So of course the total of the query is not the entire data set.</p>
<p>Rudiger:&#160;If you use this corrected code (notice the <strong>records</strong> element value), it works correctly:</p>
<p><span style="color: #0000ff;">$s = "&#60;?xml version=&#39;1.0&#39; encoding=&#39;utf-8&#39;?&#62;\n";</span></p>
<p><span style="color: #0000ff;">$s .= "&#60;rows&#62;\n";</span></p>
<p><span style="color: #0000ff;">$s .= " &#160; &#60;page&#62;" . $page . "&#60;/page&#62;\n";</span></p>
<p><span style="color: #0000ff;">$s .= " &#160; &#60;total&#62;" . $totalpages . "&#60;/total&#62;\n";</span></p>
<p><em><span style="color: #0000ff;">$s .= " &#160; &#60;records&#62;" . <strong>$totalrows</strong> . "&#60;/records&#62;\n";</span></em></p>
<p><span style="color: #0000ff;">foreach ($rows as $row)</span></p>
<p><span style="color: #0000ff;">{</span></p>
<p style="padding-left: 30px;"><span style="color: #0000ff;">$s .= " &#160; &#60;row id="" . $row[&#39;id&#39;] . ""&#62;\n";</span></p>
<p style="padding-left: 30px;"><span style="color: #0000ff;">$s .= " &#160; &#160; &#160;&#60;cell&#62;" . $row[&#39;id&#39;] . "&#60;/cell&#62;\n";</span></p>
<p style="padding-left: 30px;"><span style="color: #0000ff;">$s .= " &#160; &#160; &#160;&#60;cell&#62;" . $row[&#39;word&#39;] . "&#60;/cell&#62;\n";</span></p>
<p style="padding-left: 30px;"><span style="color: #0000ff;">$s .= " &#160; &#60;/row&#62;\n";</span></p>
<p><span style="color: #0000ff;">}</span></p>
<p><span style="color: #0000ff;">$s .= "&#60;/rows&#62;\n";</span></p>
]]></description>
        	        	<pubDate>Wed, 10 Mar 2010 01:16:42 +0200</pubDate>
        </item>
        <item>
        	<title>rudiger on True Scrolling Bug?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/true-scrolling-bug#p15561</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/true-scrolling-bug#p15561</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
</p>
<p>Thanks for your replies.</p>
</p>
<p>Is it not a bug? I am getting the same problems. It is unclear where we should use</p>
</p>
<p>$s .= "&#60;records&#62;" . $count .  "&#60;/records&#62;";</p>
<p>$s .= "&#60;total&#62;" . $total_pages .  "&#60;/total&#62;";</p>
</p>
<p>or</p>
</p>
<p>$s .= "&#60;records&#62;" . $totalpages .  "&#60;/records&#62;n";</p>
<p>$s .= "&#60;total&#62;" . count ($rows) .  "&#60;/total&#62;n";</p>
</p>
<p>Can you post the PHP and grid for one of the working examples on the site that use True Scrolling?</p>
]]></description>
        	        	<pubDate>Tue, 09 Mar 2010 22:54:25 +0200</pubDate>
        </item>
        <item>
        	<title>tony on True Scrolling Bug?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/true-scrolling-bug#p15542</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/true-scrolling-bug#p15542</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>It is up to developer how to do this. It is not a bug and the code in documentation is the code used into the demo</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 09 Mar 2010 20:02:55 +0200</pubDate>
        </item>
        <item>
        	<title>monoclast on True Scrolling Bug?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/true-scrolling-bug#p15453</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/true-scrolling-bug#p15453</guid>
        	        	<description><![CDATA[<p>Also, I just noticed that the <a href="/jqgridwiki/doku.php?id=wiki:first_grid" target="_blank">documentation for the PHP file</a> appears to be incorrect as well. It shows these elements in the generated XML:</p>
<p style="padding-left: 30px;"><strong>records</strong>: the total records from the query</p>
<p style="padding-left: 30px;"><strong>total</strong>: the total pages in the query</p>
<p>In the sample code on the same page, they show:</p>
<p style="padding-left: 30px;">$s .= "&#60;records&#62;" . $count . "&#60;/records&#62;";</p>
<p style="padding-left: 30px;">$s .= "&#60;total&#62;" . $total_pages . "&#60;/total&#62;";</p>
<p>But in <a href="/blog/?page_id=393/discussion/how-does-true-scrolling-work" target="_blank">this forum post</a>, I was instructed to swap these values like so:</p>
<p style="padding-left: 30px;">$s .= "&#60;records&#62;" . $totalpages . "&#60;/records&#62;n";</p>
<p style="padding-left: 30px;">$s .= "&#60;total&#62;" . count ($rows) . "&#60;/total&#62;n";</p>
<p>This worked, in that it caused jqGrid to start loading as needed, but the grid still stops at 400&#160;rows, as shown above&#160;(<em>402 above is a typo</em>)!</p>
<p>But if this is correct, the documentation is wrong, and should really be fixed! <img class="wp-smiley" src="/blog/wp-includes/images/smilies/icon_wink.gif" alt=";)" /></p>
]]></description>
        	        	<pubDate>Mon, 08 Mar 2010 01:44:55 +0200</pubDate>
        </item>
        <item>
        	<title>monoclast on True Scrolling Bug?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/true-scrolling-bug#p15452</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/true-scrolling-bug#p15452</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I previously asked about how to get true scrolling to work in this forum thread:</p>
<p><a title="jqGrid Forum Post" href="/blog/?page_id=393/discussion/how-does-true-scrolling-work" target="_blank">jqGrid Forum Post</a></p>
<p>But now I see true scrolling still does not seem to work correctly! <img class="spSmiley" style="margin:0" title="Frown" src="/blog/wp-content/forum-smileys/sf-frown.gif" alt="Frown" />&#160;</p>
<p>jqGrid seems to <strong>stop loading after 402 rows</strong> in my test case, which is quite strange!</p>
<p>I have detailed the test case on this web page (code &#38; database are provided for download too):</p>
<p><a title="jqGrid Test" href="http://jollyroger.kicks-ass.org/grid_test/" target="_blank">jqGrid Test</a></p>
<p>I would appreciate any help you might be able to offer, even just confirmation that this is a bug in jqGrid!</p>
]]></description>
        	        	<pubDate>Sun, 07 Mar 2010 23:27:06 +0200</pubDate>
        </item>
</channel>
</rss>