<?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: How to keep current page and search toolbar condition after refresh</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-keep-current-page-and-search-toolbar-condition-after-refresh</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/how-to-keep-current-page-and-search-toolbar-condition-after-refresh/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>kobruleht on How to keep current page and search toolbar condition after refresh</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-keep-current-page-and-search-toolbar-condition-after-refresh#p24570</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-keep-current-page-and-search-toolbar-condition-after-refresh#p24570</guid>
        	        	<description><![CDATA[<p>jqgrid is used in virtual scroll mode (scroll:1).<br />If refresh button is pressed in toolbar or&#160;.trigger(&#39;reloadGrid&#39;) is called, search filter is cleared and firt page is displayed. How to show current page on refresh ?</p>
<p>jqGrid source code contains private method called on scrollrows: true</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8266' value='Select Code' data-codeid='sfcode8266' /></p>
<div class='sfcode' id='sfcode8266'>
<p>function scrGrid(iR) {<br />var ch = $($t.grid.bDiv)[0].clientHeight,<br />st = $($t.grid.bDiv)[0].scrollTop,<br />rpos = $t.rows[iR].offsetTop,<br />rh = $t.rows[iR].clientHeight;<br />if (rpos + rh &#62;= ch + st) { $($t.grid.bDiv)[0].scrollTop = rpos &#8211; (ch + st) + rh + st; }<br />else if (rpos &#60; ch + st) {<br />if (rpos &#60; st) {<br />$($t.grid.bDiv)[0].scrollTop = rpos;<br />}<br />}<br />}</p>
</div>
<p>Can this used to scroll to&#160;visible row on current page after refresh? However refresh selects automatically first page. How to keep current page and search filter set in search toolbar on refresh ?</p>
]]></description>
        	        	<pubDate>Fri, 09 Sep 2011 09:39:16 +0300</pubDate>
        </item>
</channel>
</rss>