<?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: Local Data and pagination</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/local-data-and-pagination</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/local-data-and-pagination/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on Local Data and pagination</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/local-data-and-pagination#p21130</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/local-data-and-pagination#p21130</guid>
        	        	<description><![CDATA[<p>Hello Glen,</p>
<p>probably you included not all jqGrid modules which you needed. Look at the code <a href="http://www.ok-soft-gmbh.com/jqGrid/gtm.htm" target="_blank">here</a> which shows how I would do what you need.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Sat, 04 Dec 2010 00:03:30 +0200</pubDate>
        </item>
        <item>
        	<title>gtm on Local Data and pagination</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/local-data-and-pagination#p21035</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/local-data-and-pagination#p21035</guid>
        	        	<description><![CDATA[<p>Hi All,</p>
</p>
<p>I am new to jqGrid, it looks great thanks. I am trying to load local data into a grid and it works fine unitl I put the pager option on.</p>
<p>When I add the pager option my grid is rendered empty with the text "undefined" in the center if the grid.</p>
</p>
<p>Here is the javascript for my test:</p>
<p>jQuery("#queueTable").jqGrid({</p>
<p><span style="white-space: pre;"> </span>datatype: "clientside",</p>
<p><span style="white-space: pre;"> </span>autowidth: true,</p>
<p><span style="white-space: pre;"> </span>colNames: [&#39;Name&#39;, &#39;Type&#39;, &#39;Desc&#39;],</p>
<p><span style="white-space: pre;"> </span>colModel: [</p>
<p><span style="white-space: pre;"> </span>{name:&#39;name&#39;, index:&#39;name&#39;},</p>
<p><span style="white-space: pre;"> </span>{name:&#39;type&#39;, index:&#39;type&#39;},</p>
<p><span style="white-space: pre;"> </span>{name:&#39;desc&#39;, index:&#39;desc&#39;}</p>
<p><span style="white-space: pre;"> </span>],</p>
<p><span style="white-space: pre;"> </span>altRows: true,</p>
<p><span style="white-space: pre;"> </span>caption: ""</p>
<p>});</p>
</p>
<p>var mydata = [</p>
<p><span style="white-space: pre;"> </span>{name:"Test", type:"type1",desc:"Desc1"},</p>
<p><span style="white-space: pre;"> </span>{name:"Test1", type:"type2",desc:"Desc2"}</p>
<p>];</p>
</p>
<p>for (var i = 0; i &#60; mydata.length; ++i) {</p>
<p><span style="white-space: pre;"> </span>jQuery("#queueTable").jqGrid(&#39;addRowData&#39;, i+1, mydata[i]);</p>
<p>}</p>
</p>
<p>Below is my html:</p>
<p>&#60;table id="queueTable"&#62;&#60;/table&#62;</p>
<p>&#60;div id="queuePager"&#62;&#60;/div&#62;</p>
</p>
<p>The above works fine, but when I add</p>
</p>
<p>pager: "#queuePager"&#160;</p>
</p>
<p>to the jqGrid constructor I get &#160;the grid with the column headers but no data. There is a white box with an orange border which says &#39;undefined&#39; in orange.</p>
<p>I assume I am missing some configuration option but I can&#39;t seem to figure it out.</p>
</p>
<p>Thanks</p>
</p>
<p>&#160;Glenn&#160;</p></p>
]]></description>
        	        	<pubDate>Mon, 29 Nov 2010 17:36:54 +0200</pubDate>
        </item>
</channel>
</rss>