<?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: virtual scrolling (scroll 1) not stopping after last row retrieved</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/virtual-scrolling-scroll-1-not-stopping-after-last-row-retrieved</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/virtual-scrolling-scroll-1-not-stopping-after-last-row-retrieved/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>cfmarino on virtual scrolling (scroll 1) not stopping after last row retrieved</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/virtual-scrolling-scroll-1-not-stopping-after-last-row-retrieved#p24085</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/virtual-scrolling-scroll-1-not-stopping-after-last-row-retrieved#p24085</guid>
        	        	<description><![CDATA[<p>I was just playing around with this issue.&#160;&#160; I found that if I change the grid definition of <strong>rowNum</strong> to <strong>rownum</strong> the problem goes away.&#160;&#160; Did this parameter change?</p>
</p>
<p>Thanks</p>
<p>carmine</p>
]]></description>
        	        	<pubDate>Thu, 28 Jul 2011 17:29:19 +0300</pubDate>
        </item>
        <item>
        	<title>cfmarino on virtual scrolling (scroll 1) not stopping after last row retrieved</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/virtual-scrolling-scroll-1-not-stopping-after-last-row-retrieved#p24084</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/virtual-scrolling-scroll-1-not-stopping-after-last-row-retrieved#p24084</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>We are using the virtual scrolling feature of jqgrid.&#160; Everything works fine with version 3.6.4.&#160;&#160; When we upgrade to 3.8.1 or the latest 4.1.2 we see the issue.</p>
<p>The issue: The scrolling continues past the last row of our data and&#160; keeps repeating the last row in the grid.</p>
<p>If our dataset from the server contains a round number of rows, meaning the last page cotains the rownum amount defined in the grid, &#160;the grid performs properly.&#160; It stops trying to retrieve from the server at the last row as expected.&#160; But If our dataset from the server contains a "left over" amount of rows, meaning the last page has less than the requested amount (rowNum defined in the grid) if continues to try to retrieve even though there is no more data.&#160; Our grid definition:</p>
<p>&#160;&#160;&#160;</p>
<pre>$("#searchResultMaster").jqGrid({
	scroll: 1,		
	url:&#39;/ims/IndividualsSearch/loadRemainingData.action?sid=&#39; + Math.random(),
	datatype: "json",		
	mtype: "GET",
	colNames : [&#39;First Name&#39;,&#39;Middle Name&#39;,&#39;Last Name&#39;,&#39;Indv ID&#39;,&#39;hidden&#39;],
	colModel : [{name :&#39;first_nm&#39;,index :&#39;first_nm&#39;,align :&#39;left&#39;,width :100},
		{name :&#39;middle_nm&#39;,index :&#39;middle_nm&#39;,align :&#39;left&#39;,width :100},
		{name :&#39;last_nm&#39;,index :&#39;last_nm&#39;,align :&#39;left&#39;,width :100},
		{name :&#39;indv_id&#39;,index :&#39;indv_id&#39;,align :&#39;left&#39;,width :80,hidden:true},
		{name :&#39;forIndvMOE&#39;,index :&#39;forIndvMOE&#39;,align :&#39;left&#39;,width:100,hidden:true}
		],
	width :930,
	loadtext:" Loading Search Result, Please wait .... ",
	height :300,
	rowNum:30,
	altRows:true,
	altclass:&#39;myAltRowClass&#39;,
	shrinkToFit :false,
	multiselect: true
});
</pre>
<p>In this case we have 31 total records. As you can see above rownum is set to 30. <br />The first JSON String returned:</p>
<pre><p>{"page":"1","total":"2","records":"31", "rows" : [{"id":"0003284854","cell":["Jane","A","Doe","0003284854"]},</p><p>				            {"id":"0003284856","cell":["Jane1","A","Doe","0003284856"]},</p><p>				            {"id":"0003284857","cell":["Jane2","A","Doe","0003284857"]},	</p><p>				            {"id":"0003284858","cell":["Jane"3,"A","Doe","0003284858"]},</p><p>				             ...snip... 30 total rows returned.</p><p>				&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {"id":"0003284858","cell":["Jane"3,"A","Doe","0003284858"]},</p><p>				           ]}</p><br /><p>This is the last record in the data set and the grid keeps requesting it on scrolling:</p></pre>
<pre>{"page":"2","total":"2","records":"31", "rows" : [{"id":"0003284810","cell":["John","A","Doe","0003284810"]}]}</pre>
<pre>This works fine with jqGrid 3.6.4, but doesn&#39;t work in 3.8.1 and 4.1.2.  Did something change?</pre>
<pre>Thanks </pre>
<pre>Carmine</pre>
]]></description>
        	        	<pubDate>Thu, 28 Jul 2011 17:24:59 +0300</pubDate>
        </item>
</channel>
</rss>