<?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: Simple sample not working (copied from the demos)</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/simple-sample-not-working-copied-from-the-demos</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/simple-sample-not-working-copied-from-the-demos/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>iyellu on Simple sample not working (copied from the demos)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/simple-sample-not-working-copied-from-the-demos#p26789</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/simple-sample-not-working-copied-from-the-demos#p26789</guid>
        	        	<description><![CDATA[<p>Hi:</p>
<p>I&#39;m new to jqGrid, and I tried to make a simple jqGrid working.</p>
<p>I copied the code from&#160; <a href="http://www.trirand.com/blog/jqgrid/jqgrid.html" rel="nofollow" target="_blank"><a href="http://www.trirand.com/blog/jq" rel="nofollow">http://www.trirand.com/blog/jq</a>.....qgrid.html</a> and put it in a html file, then open it with firefox, but the grid can&#39;t load data successfully</p>
<p>here is the html:</p>
</p>
<p>&#60;head&#62;</p>
<p>&#60;link rel="stylesheet" type="text/css" href="http://www.trirand.com/blog/jqgrid/themes/redmond/jquery-ui-1.8.1.custom.css"/&#62;</p>
<p>&#60;link rel="stylesheet" type="text/css" href="http://www.trirand.com/blog/jqgrid/themes/ui.jqgrid.css"/&#62;</p>
<p>&#60;script type="text/javascript" src="http://www.trirand.com/blog/jqgrid/js/jquery.js"&#62;&#60;/script&#62;</p>
<p>&#60;script type="text/javascript" src="http://www.trirand.com/blog/jqgrid/js/jquery-ui-1.8.1.custom.min.js"&#62;&#60;/script&#62;</p>
</p>
<p>&#60;script type="text/javascript" src="http://www.trirand.com/blog/jqgrid/js/jquery.layout.js"&#62;&#60;/script&#62;</p>
<p>&#60;script type="text/javascript" src="http://www.trirand.com/blog/jqgrid/js/i18n/grid.locale-en.js"&#62;&#60;/script&#62;</p>
<p>&#60;script type="text/javascript" src="http://www.trirand.com/blog/jqgrid/js/ui.multiselect.js"&#62;&#60;/script&#62;</p>
<p>&#60;script type="text/javascript" src="http://www.trirand.com/blog/jqgrid/js/jquery.jqGrid.min.js"&#62;&#60;/script&#62;</p>
<p>&#60;script type="text/javascript" src="http://www.trirand.com/blog/jqgrid/js/jquery.tablednd.js"&#62;&#60;/script&#62;</p>
<p>&#60;script type="text/javascript" src="http://www.trirand.com/blog/jqgrid/js/jquery.contextmenu.js"&#62;&#60;/script&#62;</p>
<p>&#60;/head&#62;</p>
<p>&#60;body&#62;</p>
<p>&#60;table id="list2"&#62;</p>
<p>&#60;/table&#62;&#60;div id="pager2"&#62;&#60;/div&#62;</p>
<p>&#60;/body&#62;</p>
<p>&#60;script type="text/javascript"&#62;</p>
<p>jQuery("#list2").jqGrid({</p>
<p>url:&#39;<a href="http://www.trirand.com/blog/jqgrid/server.php?q=2&#038;#39" rel="nofollow" target="_blank"><a href="http://www.trirand.com/blog/jq" rel="nofollow">http://www.trirand.com/blog/jq</a>.....2&#038;#39</a>;,</p>
<p>datatype: "json",</p>
<p>colNames:[&#39;Inv No&#39;,&#39;Date&#39;, &#39;Client&#39;, &#39;Amount&#39;,&#39;Tax&#39;,&#39;Total&#39;,&#39;Notes&#39;],</p>
<p>colModel:[</p>
<p>{name:&#39;id&#39;,index:&#39;id&#39;, width:55},</p>
<p>{name:&#39;invdate&#39;,index:&#39;invdate&#39;, width:90},</p>
<p>{name:&#39;name&#39;,index:&#39;name asc, invdate&#39;, width:100},</p>
<p>{name:&#39;amount&#39;,index:&#39;amount&#39;, width:80, align:"right"},</p>
<p>{name:&#39;tax&#39;,index:&#39;tax&#39;, width:80, align:"right"},</p>
<p>{name:&#39;total&#39;,index:&#39;total&#39;, width:80,align:"right"},</p>
<p>{name:&#39;note&#39;,index:&#39;note&#39;, width:150, sortable:false}</p>
<p>],</p>
<p>rowNum:10,</p>
<p>rowList:[10,20,30],</p>
<p>pager: &#39;#pager2&#39;,</p>
<p>sortname: &#39;id&#39;,</p>
<p>viewrecords: true,</p>
<p>sortorder: "desc",</p>
<p>caption:"JSON Example"</p>
<p>});</p>
<p>jQuery("#list2").jqGrid(&#39;navGrid&#39;,&#39;#pager2&#39;,{edit:false,add:false,del:false});</p>
</p>
<p>&#60;/script&#62;</p>
]]></description>
        	        	<pubDate>Thu, 14 Jun 2012 05:47:29 +0300</pubDate>
        </item>
</channel>
</rss>