<?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: root and row not working.</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/root-and-row-not-working</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/root-and-row-not-working/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>guerven on root and row not working.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/root-and-row-not-working#p3117</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/root-and-row-not-working#p3117</guid>
        	        	<description><![CDATA[<p>GOT IT!</p>
<p>Ah, forgive the newbie, I got it. just after posting the question.</p>
<p>the correct snippet is below, check the maroon colored text.</p>
</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; var mystr = "&#60;?xml version=&#39;1.0&#39; encoding=&#39;utf-8&#39;?&#62; &#60;myroot&#62;&#160; &#60;myrow&#62; &#60;column1&#62;data1&#60;/column1&#62; &#60;column2&#62;data2&#60;/column2&#62; &#60;/myrow&#62; &#60;/myroot&#62; ";<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(document).ready(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#list").jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;xmlstring&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datastr: mystr,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [&#39;Inv No&#39;, &#39;Date&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;invid&#39;, index: &#39;invid&#39;, width: 55, xmlmap: "column1" },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;invdate&#39;, index: &#39;invdate&#39;, width: 90, xmlmap: "column2"}],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: jQuery(&#39;#pager&#39;),<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum: 10,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true, repeatitems: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; imgpath: &#39;themes/basic/images&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: &#39;My first grid&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; loadonce: true, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: #800000;"><span style="text-decoration: underline;"><em><strong>&#160;&#160;&#160;&#160;&#160;&#160; xmlReader: { root : "myroot", row: "myrow", repeatitems: false}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</strong></em></span></span>);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
]]></description>
        	        	<pubDate>Mon, 17 Nov 2008 04:13:34 +0200</pubDate>
        </item>
        <item>
        	<title>guerven on root and row not working.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/root-and-row-not-working#p3116</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/root-and-row-not-working#p3116</guid>
        	        	<description><![CDATA[<p>Hi all,</p>
</p>
<p>&#160;&#160; Does anybody know whats wrong with the snippet below, I;m working with XMLstring , I copied the sample from the <strong><em><span style="text-decoration: underline;">jqgriddocs.pdf</span></em></strong> and it works fine. But when I rename the &#60;rows&#62; , &#60;row&#62; or &#60;cell&#62; it stops working.</p>
<p>I already specified the root, row, and xmlmap but to no avail.</p>
<p>it seems only the default datastructure is the only one that works.</p>
<p>&#60;rows&#62;&#60;row&#62;&#60;cell&#62;<img class="spSmiley" style="margin:0" title="Cry" src="/blog/wp-content/plugins/simple-forum/tinymce/plugins/emotions/img/smiley-cry.gif" border="0" alt="Cry" />&#60;/cell&#62;&#60;/row&#62;&#60;/rows&#62;</p>
</p>
<p><span style="color: #ff0000;">please see code snippet below:</span></p>
</p>
<p>&#160;&#160;&#160; &#60;script type="text/javascript"&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var mystr = "&#60;?xml version=&#39;1.0&#39; encoding=&#39;utf-8&#39;?&#62; &#60;<strong><em><span style="text-decoration: underline;">myroot</span></em></strong>&#62;&#160; &#60;<span style="text-decoration: underline;">myrow</span>&#62; &#60;<em>column1</em>&#62;data1&#60;/<em>column1</em>&#62; &#60;<em>column2</em>&#62;data2&#60;/<em>column2</em>&#62; &#60;/<span style="text-decoration: underline;">myrow</span>&#62; &#60;/<strong><em><span style="text-decoration: underline;">myroot</span></em></strong>&#62; ";</p>
</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; <strong>jQuery</strong>(document).ready(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; <strong>jQuery</strong>("#list").jqGrid({<br /><strong>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; root: "myroot",&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;xmlstring&#39;,</strong><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datastr: mystr,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [&#39;Inv No&#39;, &#39;Date&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: #339966;">&#160; { name: &#39;invid&#39;, index: &#39;invid&#39;, width: 55,&#160; <span style="color: #ff0000;">xmlmap</span>: "column1" }</span>,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: #003366;"> { name: &#39;invdate&#39;, index: &#39;invdate&#39;, width: 90, <span style="color: #ff0000;">xmlmap</span>: "column2"}</span>],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: jQuery(&#39;#pager&#39;),<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum: 10,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true, repeatitems: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; imgpath: &#39;themes/basic/images&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: &#39;My first grid&#39;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }); <br />&#160;&#160;&#160; &#60;/script&#62;</p>
]]></description>
        	        	<pubDate>Mon, 17 Nov 2008 04:06:12 +0200</pubDate>
        </item>
</channel>
</rss>