<?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: trigger("reloadGrid",&#091;{page:4}&#093;) not working with option {scroll:true}</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/triggerreloadgridpage4-not-working-with-option-scrolltrue</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/triggerreloadgridpage4-not-working-with-option-scrolltrue/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>doublefint on trigger("reloadGrid",&#091;{page:4}&#093;) not working with option {scroll:true}</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/triggerreloadgridpage4-not-working-with-option-scrolltrue#p25011</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/triggerreloadgridpage4-not-working-with-option-scrolltrue#p25011</guid>
        	        	<description><![CDATA[<p>please, fix "reloadGrid" handler:</p>
<p>...........</p>
<p>if(ts.p.scroll) {</p>
<p>&#160;emptyRows(ts.grid.bDiv,true, false);} // as result height of content = 0</p>
<p>&#160;if (opts &#38;&#38; opts.page) { //set custom page number</p>
<p>&#160;var page = opts.page; //page number</p>
<p>&#160;if (page &#62; ts.p.lastpage) { page = ts.p.lastpage; }&#160;if (page &#60; 1) { page = 1; } //validate page number</p>
<p>&#160;ts.p.page = page; //save in options</p>
<p>&#160;if (ts.grid.prevRowHeight) {&#160;</p>
<p>&#160; var pageHeight=ts.grid.prevRowHeight * ts.p.rowNum&#160;, scrollTop=(page - 1) * pageHeight&#160;, scrollDiv=ts.grid.bDiv;</p>
<p>&#160; scrollDiv.scrollTop=scrollTop; //!!! This is row don&#39;t work, because content height is zero</p>
<p>&#160; /* Fix */</p>
<p><strong>&#160; if (scrollDiv.scrollTop &#60; scrollTop) {&#160;</strong></p>
<p><strong>&#160; &#160;&#160;</strong>// set content height &#160;</p>
<p><strong>&#160; &#160;$("&#62;div:first", scrollDiv).height(scrollTop+pageHeight); &#160;</strong></p>
<p><strong>&#160; &#160;</strong>// and now set scrollTop</p>
<p><strong>&#160; &#160;scrollDiv.scrollTop=scrollTop; &#160;</strong></p>
<p><strong>&#160; }</strong></p>
<p>}</p>
<p>.......&#160;</p></p>
]]></description>
        	        	<pubDate>Fri, 28 Oct 2011 02:32:19 +0300</pubDate>
        </item>
</channel>
</rss>