<?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: Newbie: Problems Loading first grid</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/newbie-problems-loading-first-grid</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/newbie-problems-loading-first-grid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>MikeJudd on Newbie: Problems Loading first grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/newbie-problems-loading-first-grid#p17233</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/newbie-problems-loading-first-grid#p17233</guid>
        	        	<description><![CDATA[<p>Okay - I figured it out. After some JS debugging, I discovered that jqGrid was having a problem parsing the XML, and the problem was caused by the fact that I had a space before the first line (&#60;?xml ....). After removing that space, it worked fine (except that the sort and "next page" don&#39;t seem to work .... onwards and upwards! 😉</p>
]]></description>
        	        	<pubDate>Mon, 17 May 2010 20:43:40 +0300</pubDate>
        </item>
        <item>
        	<title>MikeJudd on Newbie: Problems Loading first grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/newbie-problems-loading-first-grid#p17177</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/newbie-problems-loading-first-grid#p17177</guid>
        	        	<description><![CDATA[<p>Hi all -</p>
<p>I&#39;m new to jqGrid, and I&#39;m trying to work through the example grid. When I run it, I get the caption, header, body, and navigation layers, but the body is empty. The "Loading ..." message flashes briefly, but nothing shows up, and I don&#39;t get any error messages.</p>
<p>My Javascript code is:</p>
<p>&#160;&#160; &#160;&#160;&#160; &#160;&#160; jQuery("#list").jqGrid({<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; url:MyURL,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; datatype: &#39;xml&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; mtype: &#39;GET&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; colNames:[&#39;Inv No&#39;,&#39;Amount&#39;,&#39;Tax&#39;,&#39;Notes&#39;],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; colModel :[ <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;invid&#39;, index:&#39;invid&#39;, width:55}, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;amount&#39;, index:&#39;amount&#39;, width:80, align:&#39;right&#39;}, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;tax&#39;, index:&#39;tax&#39;, width:80, align:&#39;right&#39;}, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;note&#39;, index:&#39;note&#39;, width:150, sortable:false} <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; ],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; pager: &#39;#pager&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; rowNum:10,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; rowList:[10,20,30],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; sortname: &#39;invid&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; sortorder: &#39;desc&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; caption: &#39;My first grid&#39;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; });</p>
</p>
<p>and the XML that is returned is (this is when I just to a GET to the server and display the result:</p>
<p>&#160;&#60;?xml version=&#39;1.0&#39; encoding=&#39;utf-8&#39;?&#62; <br />&#160;&#60;rows&#62; <br />&#160;&#60;page&#62;1&#60;/page&#62; <br />&#160;&#60;total&#62;1&#60;/total&#62; <br />&#160;&#60;records&#62;2&#60;/records&#62; <br />&#160;&#60;row id=&#39;1&#39;&#62; <br />&#160;&#60;cell&#62;101&#60;/cell&#62; <br />&#160;&#60;cell&#62;500.00&#60;/cell&#62; <br />&#160;&#60;cell&#62;15.00&#60;/cell&#62; <br />&#160;&#60;cell&#62;Testing&#60;/cell&#62; <br />&#160;&#60;/row&#62; <br />&#160;&#60;row id=&#39;2&#39;&#62; <br />&#160;&#60;cell&#62;102&#60;/cell&#62; <br />&#160;&#60;cell&#62;200.00&#60;/cell&#62; <br />&#160;&#60;cell&#62;10.00&#60;/cell&#62; <br />&#160;&#60;cell&#62;Testing2&#60;/cell&#62; <br />&#160;&#60;/row&#62; <br />&#160;&#60;/rows&#62;</p>
</p>
<p>I assume I&#39;m missing something obvious, but I&#39;ve been working with it all afternoon and I just don&#39;t see it. Can anyone point me in the right direction?</p>
</p>
<p>Thanks very much,</p>
]]></description>
        	        	<pubDate>Fri, 14 May 2010 23:52:11 +0300</pubDate>
        </item>
</channel>
</rss>