<?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: Load grid data from local variable.</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/load-grid-data-from-local-variable</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/load-grid-data-from-local-variable/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>brycekmartin on Load grid data from local variable.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/load-grid-data-from-local-variable#p14958</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/load-grid-data-from-local-variable#p14958</guid>
        	        	<description><![CDATA[<p>I got it working.  There is an example under Loading Data -> Array Data on this page... <a href="http://trirand.com/blog/jqgrid/jqgrid.html" rel="nofollow" target="_blank"><a href="http://trirand.com/blog/jqgrid" rel="nofollow">http://trirand.com/blog/jqgrid</a>.....qgrid.html</a></p>
]]></description>
        	        	<pubDate>Fri, 19 Feb 2010 18:30:38 +0200</pubDate>
        </item>
        <item>
        	<title>brycekmartin on Load grid data from local variable.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/load-grid-data-from-local-variable#p14953</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/load-grid-data-from-local-variable#p14953</guid>
        	        	<description><![CDATA[<p>Any body done this?  Someone has to have tried this right?</p>
]]></description>
        	        	<pubDate>Fri, 19 Feb 2010 15:10:33 +0200</pubDate>
        </item>
        <item>
        	<title>brycekmartin on Load grid data from local variable.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/load-grid-data-from-local-variable#p14944</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/load-grid-data-from-local-variable#p14944</guid>
        	        	<description><![CDATA[<p>I&#39;m trying to do a mock up and need some sample data but need it locally.&#160; I can&#39;t take the time right now to do all the ajax stuff right now and write the server side code to generate my result set.&#160; What I want to do is just create some sample data and put it in a local variable and use that to load the grid instead of some url.... is this possible.&#160; I&#39;m pretty sure it is, but after looking around I can&#39;t see any reference...&#160; here is what I have...</p>
</p>
<p>&#60;link rel="stylesheet" type="text/css" href="/public/jqGrid364/css/ui.jqgrid.css"&#62;&#60;/link&#62;</p>
<p>&#60;script type="text/javascript" src="../../public/jqGrid364/js/jquery-1.3.2.min.js"&#62;&#60;/script&#62;</p>
<p>&#60;script type="text/javascript" src="../../public/jqGrid364/js/i18n/grid.locale-en.js"&#62;&#60;/script&#62;</p>
<p>&#60;script type="text/javascript" src="../../public/jqGrid364/js/jquery.jqGrid.min.js"&#62;&#60;/script&#62;</p>
<p>&#60;script&#62;</p>
<p>var testData = {total:"1",</p>
<p>page:"1",</p>
<p>records:"10",</p>
<p>rows:[{id:"1",cells:["1", "0", "4", "0", "0", "0", "0", "0", "0"]}</p>
<p>,{id:"2",cells:["1", "0", "4", "0", "0", "0", "0", "0", "0"]}</p>
<p>,{id:"3",cells:["1", "0", "4", "0", "0", "0", "0", "0", "0"]}</p>
<p>,{id:"4",cells:["1", "0", "4", "0", "0", "0", "0", "0", "0"]}</p>
<p>,{id:"5",cells:["1", "0", "4", "0", "0", "0", "0", "0", "0"]}</p>
<p>,{id:"6",cells:["1", "0", "4", "0", "0", "0", "0", "0", "0"]}</p>
<p>,{id:"7",cells:["1", "0", "4", "0", "0", "0", "0", "0", "0"]}</p>
<p>,{id:"8",cells:["1", "0", "4", "0", "0", "0", "0", "0", "0"]}</p>
<p>,{id:"9",cells:["1", "0", "4", "0", "0", "0", "0", "0", "0"]}</p>
<p>,{id:"10",cells:["1", "0", "4", "0", "0", "0", "0", "0", "0"]}</p>
<p>]};</p>
<p>jQuery(document).ready(function(){</p>
<p>jQuery("#list").jqGrid({</p>
<p>url:testData,</p>
<p>datatype:&#39;json&#39;,</p>
<p>colNames:[&#39;Order&#39;,&#39;WC1&#39;,&#39;WC2&#39;,&#39;WC3&#39;,&#39;WC4&#39;,&#39;WC5&#39;,&#39;WC6&#39;,&#39;WC7&#39;,&#39;WC8&#39;,&#39;WC9&#39;],</p>
<p>colModel:[</p>
<p>{name:&#39;invid&#39;, index:&#39;invid&#39;, width:55},</p>
<p>{name:&#39;wc1&#39;, index:&#39;wc1&#39;, width:20},</p>
<p>{name:&#39;wc2&#39;, index:&#39;wc2&#39;, width:20},</p>
<p>{name:&#39;wc3&#39;, index:&#39;wc3&#39;, width:20},</p>
<p>{name:&#39;wc4&#39;, index:&#39;wc4&#39;, width:20},</p>
<p>{name:&#39;wc5&#39;, index:&#39;wc5&#39;, width:20},</p>
<p>{name:&#39;wc6&#39;, index:&#39;wc6&#39;, width:20},</p>
<p>{name:&#39;wc7&#39;, index:&#39;wc7&#39;, width:20},</p>
<p>{name:&#39;wc8&#39;, index:&#39;wc8&#39;, width:20},</p>
<p>{name:&#39;wc9&#39;, index:&#39;wc9&#39;, width:20}],</p>
<p>pager: &#39;#pager&#39;,</p>
<p>rowNum:10,</p>
<p>rowList:[10,20,30],</p>
<p>caption: &#39;Customer Order Progress:&#39;</p>
<p>});</p>
<p>});</p>
<p>&#60;/script&#62;</p>
</p>
<p>What am I doing wrong?&#160; The jquery version that is bundled with the jqGrid download is 1.3.2.min.js.&#160; Can I use 1.4.1?&#160; I am getting an error in firebug that says...&#160; M.url.match is not a function.</p>
</p>
<p>Thanks.<br />Bryce</p>
]]></description>
        	        	<pubDate>Thu, 18 Feb 2010 23:32:48 +0200</pubDate>
        </item>
</channel>
</rss>