<?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: Manually managing virtual paging</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/manually-managing-virtual-paging</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/manually-managing-virtual-paging/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Stu on Manually managing virtual paging</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/manually-managing-virtual-paging#p24366</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/manually-managing-virtual-paging#p24366</guid>
        	        	<description><![CDATA[<p>I have a large amount of data (~1000 rows) that I need to display in a jqGrid.&#160; Most of the data I have upfront so I create the grid and the data through the &#39;data&#39; parameter.&#160; However, a couple of the columns require&#160;a query to a remote server that needs to be handled separately.&#160; It is complicated and slow, so I want to write the code to update this column&#160;only for the rows that are displayed.</p>
</p>
<p>I can set the column&#160;values using setCell(), but I need some sort of notification when new rows are displayed.&#160; Is there a way to handle this to update the row values as needed?</p>
</p>
<p>My initial grid is as follows:</p>
</p>
<p>&#160;jQuery(#table).jqGrid({{</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; autowidth: true,</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;data: data,</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: local</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: 400,</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [&#39;Date&#39;, &#39;report&#39;, &#39;attachment&#39;],</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;colModel: [</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name: &#39;studyDate&#39;, index: "studyDate" },</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name: report, index: "report" },</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //the attachment value should be paged in as necessary as it requires an async call</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;{name: &#39;attachment&#39;, index: "attachment" },</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum: 25,</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;scroll: 1</p>
<p>});</p>
<p>If I do need to update a row, I can just do the following (after querying for the value):</p>
</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;jQuery(#table).jqGrid(&#39;setCell&#39;, rowId, &#39;attachment&#39;, value);</p>
</p>
<p>&#160;Any suggestions?&#160; This is a real killer for me right now.</p>
</p>
<p>Stu</p>
<p><a href="mailto:stu_bennett1@hotmail.com" target="_blank">stu_bennett1@hotmail.com</a></p>
]]></description>
        	        	<pubDate>Mon, 22 Aug 2011 22:04:11 +0300</pubDate>
        </item>
</channel>
</rss>