<?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 scroll + ajax xml data + go to page programmatically</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/virtual-scroll-ajax-xml-data-go-to-page-programmatically</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-scroll-ajax-xml-data-go-to-page-programmatically/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>shuki on virtual scroll + ajax xml data + go to page programmatically</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/virtual-scroll-ajax-xml-data-go-to-page-programmatically#p24958</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/virtual-scroll-ajax-xml-data-go-to-page-programmatically#p24958</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>Can anyone help with this issue?</p>
<p>I have the same problem with dynamic scrolling that when I programmatically load a specific page the grid does not scroll to it.</p>
<p>If I try to scroll to the position of the records in the page using:</p>
</p>
<p>grid.closest(".ui-jqgrid-bdiv").scrollTop(2400);</p>
</p>
<p>The scroll button moves a bit and fires loading of the page the scroll button is currently on.</p>
</p>
<p>Any help will be greatly appreciated.</p>
<p>Thanks</p>
]]></description>
        	        	<pubDate>Sun, 23 Oct 2011 17:55:39 +0300</pubDate>
        </item>
        <item>
        	<title>Rakeka on virtual scroll + ajax xml data + go to page programmatically</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/virtual-scroll-ajax-xml-data-go-to-page-programmatically#p24216</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/virtual-scroll-ajax-xml-data-go-to-page-programmatically#p24216</guid>
        	        	<description><![CDATA[<blockquote>
<p>coke said:Looks like if you want to reset paging, you need {page: null} instead of {page: 1}.</p>
</blockquote>
<hr />
<p>No, I want to change to an specific page and it does not work with virtual scrolling.</p>
]]></description>
        	        	<pubDate>Wed, 10 Aug 2011 22:04:48 +0300</pubDate>
        </item>
        <item>
        	<title>coke on virtual scroll + ajax xml data + go to page programmatically</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/virtual-scroll-ajax-xml-data-go-to-page-programmatically#p24210</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/virtual-scroll-ajax-xml-data-go-to-page-programmatically#p24210</guid>
        	        	<description><![CDATA[<p>Looks like if you want to reset paging, you need {page: null} instead of {page: 1}.</p>
]]></description>
        	        	<pubDate>Wed, 10 Aug 2011 17:35:40 +0300</pubDate>
        </item>
        <item>
        	<title>Rakeka on virtual scroll + ajax xml data + go to page programmatically</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/virtual-scroll-ajax-xml-data-go-to-page-programmatically#p24115</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/virtual-scroll-ajax-xml-data-go-to-page-programmatically#p24115</guid>
        	        	<description><![CDATA[<p>I&#39;m having the same problem, when the option &#39;scroll&#39; is &#39;true&#39; or &#39;1&#39; and the page is changed via script ($(&#39;#gridID&#39;).setGridParam({page: 10}).trigger(&#39;reloadGrid&#39;);), the pager displays the right info (for example: View 1 101 &#8211; 1 150 of 2 000), but, the scroll bar doesn&#39;t change position and the grid displays nothing. It appears to be a jqGrid bug, Am I right?</p>
<table class="ui-pg-table" border="0" cellspacing="0" cellpadding="0">
<tbody>
</tbody>
</table>
]]></description>
        	        	<pubDate>Mon, 01 Aug 2011 07:19:10 +0300</pubDate>
        </item>
        <item>
        	<title>SteveT on virtual scroll + ajax xml data + go to page programmatically</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/virtual-scroll-ajax-xml-data-go-to-page-programmatically#p22586</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/virtual-scroll-ajax-xml-data-go-to-page-programmatically#p22586</guid>
        	        	<description><![CDATA[<p>Sorry, its actually after this line in updatepager:</p>
</p>
<p>$("&#62;div:first",ts.grid.bDiv).css({height : height}).children("div:first").css({height:top,display:top?"":"none"});</p>
]]></description>
        	        	<pubDate>Mon, 28 Mar 2011 23:01:07 +0300</pubDate>
        </item>
        <item>
        	<title>SteveT on virtual scroll + ajax xml data + go to page programmatically</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/virtual-scroll-ajax-xml-data-go-to-page-programmatically#p22585</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/virtual-scroll-ajax-xml-data-go-to-page-programmatically#p22585</guid>
        	        	<description><![CDATA[<p>I experienced the same problem. &#160;Here is my attempt at a fix...</p>
</p>
<p>In the updatepager function after the line with:&#160;</p>
<p>$("&#62;div:first",ts.grid.bDiv).css({paddingTop: top, height : height - top});</p>
</p>
<p>I added:</p>
</p>
<p>if (ts.grid.bDiv.scrollTop == 0 &#38;&#38; ts.p.page &#62; 1) {</p>
<p><span style="white-space: pre;"> </span>ts.grid.bDiv.scrollTop = ts.p.rowNum * (ts.p.page - 1) * rh;</p>
<p>}</p>
]]></description>
        	        	<pubDate>Mon, 28 Mar 2011 22:42:57 +0300</pubDate>
        </item>
        <item>
        	<title>LucaB on virtual scroll + ajax xml data + go to page programmatically</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/virtual-scroll-ajax-xml-data-go-to-page-programmatically#p22237</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/virtual-scroll-ajax-xml-data-go-to-page-programmatically#p22237</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I found a useful post on the topic,</p>
<p>/blog/?page_id=393/help/simulate-scroll-event-reload-next-page-virtualization/&#38;value=scroll&#38;type=1&#38;include=3&#38;search=1</p>
<p>but it seems not to apply to my scenario.</p>
<p>My configuration:&#160;</p>
</p>
<p>$jqgrid_container.jqGrid({</p>
<p>url:&#39;jqgrid&#39;,</p>
<p>datatype: &#39;xml&#39;,</p>
<p>colNames:[...],</p>
<p>colModel:[...],</p>
<p>rowNum:100,</p>
<p>rowTotal: $jqgrid_container.data(&#39;total-entries&#39;),</p>
<p>rowList:[100,500,1000],</p>
<p>pager: &#39;#jqgrid-pager&#39;,</p>
<p>loadui:&#39;block&#39;,</p>
<p>gridview:true,</p>
<p>viewrecords: true,</p>
<p>scroll:1,</p>
<p>scrollrows : true,</p>
<p>sortname: $jqgrid_container.data(&#39;sortname&#39;),</p>
<p>caption: $jqgrid_container.data(&#39;caption&#39;),</p>
<p>onSelectRow: function(id){GridEditing.row(id)},</p>
<p>shrinkToFit:false</p>
<p>})</p>
</p>
<p>Everyrthing works fine when I do normal scrolling with mouse, but I can&#39;t get it working when I want to go to a specific page.&#160;</p>
<p>The solution $("#mygrid").jqGrid(&#39;setGridParam&#39;, {page:4}).trigger(&#39;reloadGrid&#39;) only works when the config option "scroll" is false.</p>
<p>When scroll is 1 or true, the pager tells the correct position (records 301-400 of 933), the rows actually are in the DOM, but there no rows are shown in the grid, and I can&#39;t get them in the correct position.&#160;</p>
<p>In the end I tried to do also $("#mygrid").jqGrid(&#39;setSelection&#39;,true), but it doesn&#39;t work.</p>
<p>I will appreciate any help,</p>
<p>Thanks,</p>
<p>Luca</p>
]]></description>
        	        	<pubDate>Mon, 28 Feb 2011 13:01:56 +0200</pubDate>
        </item>
</channel>
</rss>