<?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: gridReload and virtual scolling</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/gridreload-and-virtual-scolling</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/gridreload-and-virtual-scolling/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>jstier on gridReload and virtual scolling</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/gridreload-and-virtual-scolling#p26648</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/gridreload-and-virtual-scolling#p26648</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>I have a created a jqgrid that looks something like this</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2238' value='Select Code' data-codeid='sfcode2238' /></p>
<div class='sfcode' id='sfcode2238'>
<p>&#160;&#160;&#160; $(&#34;#jsonmap&#34;).jqGrid({&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; <a href=&#34;/blog/&#39;./getdata.html?sessionId=&#39;+top.amApp.sessionId&#34; target="_blank">url:&#39;./getdata.html?sessionId=&#39;+top.amApp.sessionId</a>,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#34;json&#34;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; jsonReader: {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; repeatitems : false<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames:[&#39;id&#39;, &#39;state&#39;, &#39;ack&#39;, &#39;prio&#39;, &#39;Datum\/Zeit&#39;,&#39;LMA&#39;, &#39;?&#39;, &#39;HE&#39;, &#39;SHS&#39;, &#39;Klassifizierung&#39;, &#39;Bereich&#39;, &#39;Zelle&#39;, &#39;Raum&#39;, &#39;Schrank&#39;, &#39;OE1&#39;, &#39;OE2&#39;, &#39;OE3&#39;, &#39;Zl&#39;, &#39;Event&#39;, &#39;N&#39;, &#39;TO&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel:[<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;id&#39;,index:&#39;id&#39;, width:0, hidden: true},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;state&#39;,index:&#39;state&#39;, width:0, hidden: true},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;ack&#39;,index:&#39;ack&#39;, width:0, hidden: true},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;prio&#39;,index:&#39;prio&#39;, width:0, hidden: true},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;datum&#39;,index:&#39;datum&#39;, align:&#34;center&#34;,width:120 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;lma&#39;,index:&#39;lma&#39;, width:30, },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;pic&#39;,index:&#39;pic&#39;, width:30, align:&#34;center&#34;, formatter: imageFormatter },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;he&#39;,index:&#39;he&#39;, width:30 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;shs&#39;,index:&#39;shs&#39;, width:30 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;klassifizierung&#39;,index:&#39;klassifizierung&#39;, width:120 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;bereich&#39;,index:&#39;bereich&#39;, width:90 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;zelle&#39;,index:&#39;zelle&#39;, width:90 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;raum&#39;,index:&#39;raum&#39;, width:90 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;schrank&#39;,index:&#39;schrank&#39;, width:90 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;oe1&#39;,index:&#39;oe1&#39;, width:20 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;oe2&#39;,index:&#39;oe2&#39;, width:20 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;oe3&#39;,index:&#39;oe3&#39;, width:20 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;zl&#39;,index:&#39;zl&#39;, width:20 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;event&#39;,index:&#39;event&#39;, width:90 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;n&#39;,index:&#39;n&#39;, width:20 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;to&#39;,index:&#39;to&#39;, width:20 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: &#39;400&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; //scroll:1,&#160;&#160;&#160;&#160;&#160; $(&#34;#jsonmap&#34;).trigger(&#34;reloadGrid&#34;,[{current:true}]); does not seem to work with scroll:1 bummer<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; autowidth: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; rownumbers: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; rownumWidth: 40,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: &#39;#pjmap&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;id&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype : &#39;GET&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: &#34;desc&#34;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; gridview: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; multiselect : false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; //cellEdit: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; //cellsubmit : &#39;remote&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; //cellurl : &#39;./setdata.html?sessionId=&#39;+top.amApp.sessionId,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; //caption: &#34;Alarm und St&#38;ouml;rungsliste&#34;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true<br />&#160;&#160;&#160; });&#160;</p>
</div>
<p>Now when I comment in srcoll: 1, i.e. using virutal scolling the call to $("#jsonmap").trigger("reloadGrid",[{current:true}]); always relaods the grid to show the beginning of the table, regardless of the current scroll position. Is there a way that I can still use virtual scolling but the reloadGrid only fetches the pages (or rows)&#160;that are currently displayed?</p>
</p>
<p>The request to the server always contains&#160;{sord=desc, page=1,... even though I am on a different page.</p>
</p>
<p>Thx for any help</p>
]]></description>
        	        	<pubDate>Wed, 23 May 2012 01:33:51 +0300</pubDate>
        </item>
</channel>
</rss>