<?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: scrollrows Option and Dynamic Scrolling</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/scrollrows-option-and-dynamic-scrolling</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/scrollrows-option-and-dynamic-scrolling/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>nickelj on scrollrows Option and Dynamic Scrolling</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/scrollrows-option-and-dynamic-scrolling#p21725</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/scrollrows-option-and-dynamic-scrolling#p21725</guid>
        	        	<description><![CDATA[<p>This also happens to me....without this patch and scroll set to 1 and scrollrows set to true, if you scroll down to the end and then select a row (single click), the row will not be selected and the scroll bar will move up.</p>
</p>
<p>The fix shown below also worked for me.</p>
</p>
<p>Hopefully this will be included in future versions of jqgrid.</p>
</p>
<p>Jim</p>
]]></description>
        	        	<pubDate>Sun, 16 Jan 2011 21:46:19 +0200</pubDate>
        </item>
        <item>
        	<title>Frank on scrollrows Option and Dynamic Scrolling</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/scrollrows-option-and-dynamic-scrolling#p21363</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/scrollrows-option-and-dynamic-scrolling#p21363</guid>
        	        	<description><![CDATA[<p>Combining <strong>scroll: 1</strong> and <strong>scrollrows: true</strong> causes problems:</p>
</p>
<p>1. The user scrolls down and skips a few pages. The grid table then holds rows from further down the data set, but not from the beginning. When the user now tries to select one of the visible rows by clicking on it, the grid will jump back to the top of the grid and the selection will fail.</p>
</p>
<p>2. Calling <strong>setSelection</strong> does not work either if the grid has been positioned on an initial page greater than 1.</p>
</p>
<p>The following patch in <strong>grid.base.js</strong> solved the problem for me:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6484' value='Select Code' data-codeid='sfcode6484' /></p>
<div class='sfcode' id='sfcode6484'>&#160;&#160;&#160; setSelection : function(selection,onsr) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ...<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; function scrGrid(iR){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var ch = $($t.grid.bDiv)[0].clientHeight,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;st = $($t.grid.bDiv)[0].scrollTop,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rpos = $t.rows[iR].offsetTop<strong><span style=&#34;color: #339966;&#34;> + $t.offsetTop</span></strong>,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rh = $t.rows[iR].clientHeight;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ...</div>
]]></description>
        	        	<pubDate>Mon, 20 Dec 2010 19:11:09 +0200</pubDate>
        </item>
</channel>
</rss>