<?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: Getting a simple file example to run jqGrid</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/getting-a-simple-file-example-to-run-jqgrid</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/getting-a-simple-file-example-to-run-jqgrid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>DavidT on Getting a simple file example to run jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/getting-a-simple-file-example-to-run-jqgrid#p16495</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/getting-a-simple-file-example-to-run-jqgrid#p16495</guid>
        	        	<description><![CDATA[<p>I have this working now - all sorted.</p>
<p>The issue really was the text in the XML which must be wrapped in&#160; &#60;![CDATA[ ....]]&#62;</p>
<p>As I don&#39;t use PHP I had to skip this part of the Wiki example, and it wasn&#39;t completely clear on that though I did find it covered elsewhere in the Wiki.</p>
<p>Thanks</p>
<p>David</p>
]]></description>
        	        	<pubDate>Sat, 17 Apr 2010 16:08:08 +0300</pubDate>
        </item>
        <item>
        	<title>DavidT on Getting a simple file example to run jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/getting-a-simple-file-example-to-run-jqgrid#p16493</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/getting-a-simple-file-example-to-run-jqgrid#p16493</guid>
        	        	<description><![CDATA[<p>I&#39;m not entirely sure it&#39;s formatted right but I am trying to following the Wiki here &#62; <a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:first_grid" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....first_grid</a></p>
</p>
<p>The XML String is working fine, but not when using an external xml file which I&#39;ve outline above.</p>
</p>
<p>Based on the WIki, my full code has:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit899' value='Select Code' data-codeid='sfcode899' /></p>
<div class='sfcode' id='sfcode899'>&#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Strict//EN&#34; &#34;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&#34;&#038;gt" rel="nofollow" target="_blank"><a href="http://www.w3.org/TR/xhtml1/DT" rel="nofollow">http://www.w3.org/TR/xhtml1/DT</a>.....t;&#038;gt</a>;<br />&#60;html xmlns=&#34;<a href="http://www.w3.org/1999/xhtml&#038;quot" rel="nofollow" target="_blank">http://www.w3.org/1999/xhtml&#038;quot</a>; xml:lang=&#34;en&#34; lang=&#34;en&#34;&#62;<br />&#60;head&#62;<br />&#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; /&#62;<br />&#60;title&#62;My First Grid&#60;/title&#62;</p>
<p>&#60;script src=&#34;<a href="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&#038;quot" rel="nofollow" target="_blank"><a href="http://ajax.googleapis.com/aja" rel="nofollow">http://ajax.googleapis.com/aja</a>.....&#038;quot</a>; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;</p>
<p>&#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; media=&#34;screen&#34; href=&#34;<a href="http://www.rhythmnrice.biz/js/jquery/jQuery-UI/css/ui-lightness/jquery-ui-1.7.1.custom.css&#038;quot" rel="nofollow" target="_blank"><a href="http://www.rhythmnrice.biz/js/" rel="nofollow">http://www.rhythmnrice.biz/js/</a>.....&#038;quot</a>; /&#62;<br />&#60;script src=&#34;<a href="http://www.rhythmnrice.biz/js/jquery/jQuery-UI/jquery-ui-1.7.2.custom.min.js&#038;quot" rel="nofollow" target="_blank"><a href="http://www.rhythmnrice.biz/js/" rel="nofollow">http://www.rhythmnrice.biz/js/</a>.....&#038;quot</a>; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;<br />&#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; media=&#34;screen&#34; href=&#34;<a href="http://www.rhythmnrice.biz/js/jquery/jqGrid/css/ui.jqgrid.css&#038;quot" rel="nofollow" target="_blank"><a href="http://www.rhythmnrice.biz/js/" rel="nofollow">http://www.rhythmnrice.biz/js/</a>.....&#038;quot</a>; /&#62;</p>
<p>&#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; media=&#34;screen&#34; href=&#34;<a href="http://trirand.com/blog/jqgrid/themes/redmond/jquery-ui-1.7.1.custom.css&#34;&#038;gt" rel="nofollow" target="_blank"><a href="http://trirand.com/blog/jqgrid" rel="nofollow">http://trirand.com/blog/jqgrid</a>.....t;&#038;gt</a>;<br />&#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; media=&#34;screen&#34; href=&#34;<a href="http://trirand.com/blog/jqgrid/themes/ui.jqgrid.css&#34;&#038;gt" rel="nofollow" target="_blank"><a href="http://trirand.com/blog/jqgrid" rel="nofollow">http://trirand.com/blog/jqgrid</a>.....t;&#038;gt</a>;<br />&#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; media=&#34;screen&#34; href=&#34;<a href="http://trirand.com/blog/jqgrid/themes/ui.multiselect.css&#34;&#038;gt" rel="nofollow" target="_blank"><a href="http://trirand.com/blog/jqgrid" rel="nofollow">http://trirand.com/blog/jqgrid</a>.....t;&#038;gt</a>;</p>
<p>&#60;style&#62;<br />html, body {<br />&#160;&#160;&#160; margin: 0;<br />&#160;&#160;&#160; padding: 0;<br />&#160;&#160;&#160; font-size: 75%;<br />}<br />&#60;/style&#62;</p>
<p>&#60;script src=&#34;<a href="http://www.rhythmnrice.biz/js/jquery/jqGrid/js/i18n/grid.locale-en.js&#038;quot" rel="nofollow" target="_blank"><a href="http://www.rhythmnrice.biz/js/" rel="nofollow">http://www.rhythmnrice.biz/js/</a>.....&#038;quot</a>; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;<br />&#60;script src=&#34;<a href="http://www.rhythmnrice.biz/js/jquery/jqGrid/js/jquery.jqGrid.min.js&#038;quot" rel="nofollow" target="_blank"><a href="http://www.rhythmnrice.biz/js/" rel="nofollow">http://www.rhythmnrice.biz/js/</a>.....&#038;quot</a>; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;<br />&#160;<br />&#60;script type=&#34;text/javascript&#34;&#62;<br />jQuery(document).ready(function(){ <br />&#160; jQuery(&#34;#list&#34;).jqGrid({<br />&#160;&#160;&#160; url:&#34;<a href="http://www.rhythmnrice.biz/sample.xml&#038;quot" rel="nofollow" target="_blank"><a href="http://www.rhythmnrice.biz/sam" rel="nofollow">http://www.rhythmnrice.biz/sam</a>.....&#038;quot</a>;,<br />&#160;&#160;&#160; datatype: &#39;xml&#39;,<br />&#160;&#160;&#160; mtype: &#39;GET&#39;,<br />&#160;&#160;&#160; colNames:[&#39;Inv No&#39;,&#39;Date&#39;, &#39;Amount&#39;,&#39;Tax&#39;,&#39;Total&#39;,&#39;Notes&#39;],<br />&#160;&#160;&#160; colModel :[ <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;invid&#39;, index:&#39;invid&#39;, width:55}, <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;invdate&#39;, index:&#39;invdate&#39;, width:90}, <br />&#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; {name:&#39;tax&#39;, index:&#39;tax&#39;, width:80, align:&#39;right&#39;}, <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;total&#39;, index:&#39;total&#39;, width:80, align:&#39;right&#39;}, <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;note&#39;, index:&#39;note&#39;, width:150, sortable:false} <br />&#160;&#160;&#160; ],<br />&#160;&#160;&#160; pager: &#39;#pager&#39;,<br />&#160;&#160;&#160; rowNum:10,<br />&#160;&#160;&#160; rowList:[10,20,30],<br />&#160;&#160;&#160; sortname: &#39;invid&#39;,<br />&#160;&#160;&#160; sortorder: &#39;desc&#39;,<br />&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; caption: &#39;My first grid&#39;<br />&#160; }); <br />}); <br />&#60;/script&#62;<br />&#160;<br />&#60;/head&#62;<br />&#60;body&#62;<br />&#60;table id=&#34;list&#34;&#62;&#60;/table&#62; <br />&#60;div id=&#34;pager&#34;&#62;&#60;/div&#62; <br />&#60;/body&#62;<br />&#60;/html&#62;</p>
</div>
<p>The Wiki showed a mix of " and &#39; in the XML file which I had but I&#39;ve moved it all to " with the jQuery code above showing the file enclosed in &#39;.&#160; The Wiki had example.php but I don&#39;t use PHP so I&#39;m not sure if that affects things like the mtype option.</p>
<p>Is there something missing or not right here?&#160; The jqGrid does load but with no data.</p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">
<pre class="code html4strict"><span class="sc2">&#60;<a href="http://december.com/html/4/element/script.html" target="_blank"><span class="kw2">script</span></a> <span class="kw3">type</span><span class="sy0">=</span><span class="st0">"text/javascript"</span>&#62;</span><br />jQuery(document).ready(function(){ <br />  jQuery("#list").jqGrid({<br />    url:&#39;example.php&#39;,<br />    datatype: &#39;xml&#39;,<br />    mtype: &#39;GET&#39;,<br />    colNames:[&#39;Inv No&#39;,&#39;Date&#39;, &#39;Amount&#39;,&#39;Tax&#39;,&#39;Total&#39;,&#39;Notes&#39;],<br />    colModel :[ <br />      {name:&#39;invid&#39;, index:&#39;invid&#39;, width:55}, <br />      {name:&#39;invdate&#39;, index:&#39;invdate&#39;, width:90}, <br />      {name:&#39;amount&#39;, index:&#39;amount&#39;, width:80, align:&#39;right&#39;}, <br />      {name:&#39;tax&#39;, index:&#39;tax&#39;, width:80, align:&#39;right&#39;}, <br />      {name:&#39;total&#39;, index:&#39;total&#39;, width:80, align:&#39;right&#39;}, <br />      {name:&#39;note&#39;, index:&#39;note&#39;, width:150, sortable:false} <br />    ],<br />    pager: &#39;#pager&#39;,<br />    rowNum:10,<br />    rowList:[10,20,30],<br />    sortname: &#39;invid&#39;,<br />    sortorder: &#39;desc&#39;,<br />    viewrecords: true,<br />    caption: &#39;My first grid&#39;<br />  }); <br />}); <br /><span class="sc2">&#60;<span class="sy0">/</span><a href="http://december.com/html/4/element/script.html" target="_blank"><span class="kw2">script</span></a>&#62;</span><br /></pre>
</div>
]]></description>
        	        	<pubDate>Sat, 17 Apr 2010 11:00:15 +0300</pubDate>
        </item>
        <item>
        	<title>Preichow on Getting a simple file example to run jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/getting-a-simple-file-example-to-run-jqgrid#p16490</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/getting-a-simple-file-example-to-run-jqgrid#p16490</guid>
        	        	<description><![CDATA[<blockquote>
<p>DavidT said:</p>
<p>Is it an error then in the Wiki here &#62; <a rel="nofollow" href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:retrieving_data#xml_string" target="_blank"></a><a href="http://www.trirand.com/jqgridw" rel="nofollow" target="_blank">http://www.trirand.com/jqgridw</a>.....xml_string</p>
<p>I did try the backslash in th xml file but no luck. Not sure if it&#39;s to do with the page, total and record, or that it is mixxing the &#60;invoice&#62; or a similar item but will test it a bit more.</p>
</p>
<p>Thanks</p>
</p>
</blockquote>
<hr />
<p>You sure that your XML data is formatted correctly?&#160;</p>
<p>I&#39;m assuming the entire XML string was placed inside of double quotes when assigned to a variable?&#160; And if so, should the double quotes in the first line to single quotes to match the sample? &#160; I&#39;m not sure if it matters, but sometimes little things like that do.</p>
<p>I&#39;m wondering if the &#60;rows&#62; tag should be moved down three lines so it&#39;s placed just before the true row data?&#160; I&#39;m not 100% certain on that, but that&#39;s how the example seems to be set up.&#160;</p>
]]></description>
        	        	<pubDate>Sat, 17 Apr 2010 01:38:37 +0300</pubDate>
        </item>
        <item>
        	<title>DavidT on Getting a simple file example to run jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/getting-a-simple-file-example-to-run-jqgrid#p16488</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/getting-a-simple-file-example-to-run-jqgrid#p16488</guid>
        	        	<description><![CDATA[<p>Is it an error then in the Wiki here &#62; <a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:retrieving_data#xml_string" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....xml_string</a></p>
<p>I did try the backslash in th xml file but no luck. Not sure if it&#39;s to do with the page, total and record, or that it is mixxing the &#60;invoice&#62; or a similar item but will test it a bit more.</p>
</p>
<p>Thanks</p></p>
]]></description>
        	        	<pubDate>Fri, 16 Apr 2010 22:51:01 +0300</pubDate>
        </item>
        <item>
        	<title>DavidT on Getting a simple file example to run jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/getting-a-simple-file-example-to-run-jqgrid#p16487</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/getting-a-simple-file-example-to-run-jqgrid#p16487</guid>
        	        	<description><![CDATA[<p>Thanks Tony!</p>
<p>That xml string is working now - great.</p>
]]></description>
        	        	<pubDate>Fri, 16 Apr 2010 22:49:23 +0300</pubDate>
        </item>
        <item>
        	<title>Preichow on Getting a simple file example to run jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/getting-a-simple-file-example-to-run-jqgrid#p16486</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/getting-a-simple-file-example-to-run-jqgrid#p16486</guid>
        	        	<description><![CDATA[<p>Ahhh&#8230;.when I added the  slash after each XML line, Davidt&#39;s original code then worked fine.&#160;&#160; I&#39;m going on a limb here, but maybe if you added that slash after each line in your longer XML datafile that might solve that too?</p>
<p>Can anyone explain why the  solves it?</p>
</p>
<p>PS: I also noticed that you are pulling in jQuery twice: once through Google (version 1.4.2), and then Version 1.3.2 through Triand.&#160; I imagine you don&#39;t need the google include.</p>
<p>PPS: Can you confirm you were using this documentation page? <a rel="nofollow" href="/jqgridwiki/doku.php?id=wiki:retrieving_data#xml_data" target="_blank"></a><a href="http://www.trirand.com/jqgridw" rel="nofollow" target="_blank">http://www.trirand.com/jqgridw</a>.....a#xml_data&#160;</p></p>
]]></description>
        	        	<pubDate>Fri, 16 Apr 2010 22:22:15 +0300</pubDate>
        </item>
        <item>
        	<title>DavidT on Getting a simple file example to run jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/getting-a-simple-file-example-to-run-jqgrid#p16484</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/getting-a-simple-file-example-to-run-jqgrid#p16484</guid>
        	        	<description><![CDATA[</p>
<p>Ok, I&#39;ve had no success with the above and still don&#39;t know why it works but I do have the My First Grid running though not 100%.</p>
<p>The jqGrid appears but none of the data.&#160; The jquery script used is the same as in the Wiki but with my own xml file to run it so I think I may have something wrong there.</p>
</p>
<p>My xml file is:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4700' value='Select Code' data-codeid='sfcode4700' /></p>
<div class='sfcode' id='sfcode4700'>&#60;?xml version =&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;<br />&#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;10&#60;/records&#62;<br />&#60;row id=&#39;1&#39;&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;1&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;02/07/1905&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;103.98&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;45.34&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;149.32&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;This is record 1&#60;/cell&#62;<br />&#60;/row&#62;<br />&#60;row id=&#39;2&#39;&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;2&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;01/07/1905&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;104.98&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;46.34&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;151.32&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;This is record 2&#60;/cell&#62;<br />&#60;/row&#62;<br />&#60;row id=&#39;3&#39;&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;3&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;30/06/1905&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;105.98&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;47.34&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;153.32&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;This is record 3&#60;/cell&#62;<br />&#60;/row&#62;<br />&#60;row id=&#39;4&#39;&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;4&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;29/06/1905&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;106.98&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;48.34&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;155.32&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;This is record 4&#60;/cell&#62;<br />&#60;/row&#62;<br />&#60;row id=&#39;5&#39;&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;5&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;28/06/1905&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;107.98&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;49.34&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;157.32&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;This is record 5&#60;/cell&#62;<br />&#60;/row&#62;<br />&#60;row id=&#39;6&#39;&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;6&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;27/06/1905&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;108.98&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;50.34&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;159.32&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;This is record 6&#60;/cell&#62;<br />&#60;/row&#62;<br />&#60;row id=&#39;7&#39;&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;7&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;26/06/1905&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;109.98&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;51.34&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;161.32&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;This is record 7&#60;/cell&#62;<br />&#60;/row&#62;<br />&#60;row id=&#39;8&#39;&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;8&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;25/06/1905&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;110.98&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;52.34&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;163.32&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;This is record 8&#60;/cell&#62;<br />&#60;/row&#62;<br />&#60;row id=&#39;9&#39;&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;9&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;24/06/1905&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;111.98&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;53.34&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;165.32&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;This is record 9&#60;/cell&#62;<br />&#60;/row&#62;<br />&#60;row id=&#39;10&#39;&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;10&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;23/06/1905&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;112.98&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;54.34&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;167.32&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;This is record 10&#60;/cell&#62;<br />&#60;/row&#62;<br />&#60;/rows&#62;</div>
</p>
<p>Is there something wrong with this?</p>
<p>The jqGrid displays saying Page 0.</p>
]]></description>
        	        	<pubDate>Fri, 16 Apr 2010 21:52:11 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Getting a simple file example to run jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/getting-a-simple-file-example-to-run-jqgrid#p16482</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/getting-a-simple-file-example-to-run-jqgrid#p16482</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>It will not work of course.</p>
<p>My first thing here is how you represent the xml string.</p>
<p>I&#39;m sure this will work if you do this:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4938' value='Select Code' data-codeid='sfcode4938' /></p>
<div class='sfcode' id='sfcode4938'>
<p>var mystr =<br />&#34;&#60;?xml version=&#39;1.0&#39; encoding=&#39;utf-8&#39;?&#62;<br />&#60;invoices&#62;<br />&#160;&#160;&#160; &#60;rows&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;row&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;1&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;2010-03-01&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;3&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;4&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;5&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;data6&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/row&#62;<br />&#160;&#160;&#160; &#60;/rows&#62;<br />&#60;/invoices&#62;&#34;;</p>
</div>
<p>Regards</p>
<p>Tony</p>
<p>Edit: sorry not well formated</p>
<p>Add after every ne line</p>
<p>i.e.</p>
<p>var mystr =<br />"&#60;?xml version=&#39;1.0&#39; encoding=&#39;utf-8&#39;?&#62;\\<br />&#60;invoices&#62;\\<br />&#160;&#160;&#160; &#60;rows&#62;\\<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;row&#62;\\<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;1&#60;/cell&#62;\\<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;2010-03-01&#60;/cell&#62;\\<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;3&#60;/cell&#62;\\<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;4&#60;/cell&#62;\\<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;5&#60;/cell&#62;\\<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;data6&#60;/cell&#62;\\<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/row&#62;\\<br />&#160;&#160;&#160; &#60;/rows&#62;\\<br />&#60;/invoices&#62;";</p>
]]></description>
        	        	<pubDate>Fri, 16 Apr 2010 21:38:08 +0300</pubDate>
        </item>
        <item>
        	<title>DavidT on Getting a simple file example to run jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/getting-a-simple-file-example-to-run-jqgrid#p16480</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/getting-a-simple-file-example-to-run-jqgrid#p16480</guid>
        	        	<description><![CDATA[<p>I am trying to get the very basics of this running first and from the wiki the most simple would be:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2140' value='Select Code' data-codeid='sfcode2140' /></p>
<div class='sfcode' id='sfcode2140'>&#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Strict//EN&#34; &#34;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&#34;&#038;gt" rel="nofollow" target="_blank"><a href="http://www.w3.org/TR/xhtml1/DT" rel="nofollow">http://www.w3.org/TR/xhtml1/DT</a>.....t;&#038;gt</a>;<br />&#60;html xmlns=&#34;<a href="http://www.w3.org/1999/xhtml&#038;quot" rel="nofollow" target="_blank">http://www.w3.org/1999/xhtml&#038;quot</a>; xml:lang=&#34;en&#34; lang=&#34;en&#34;&#62;<br />&#60;head&#62;<br />&#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; /&#62;<br />&#60;title&#62;My First Grid&#60;/title&#62;<br />&#160;<br />&#60;script src=&#34;<a href="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&#038;quot" rel="nofollow" target="_blank"><a href="http://ajax.googleapis.com/aja" rel="nofollow">http://ajax.googleapis.com/aja</a>.....&#038;quot</a>; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;<br />&#160;<br />&#60;style&#62;<br />html, body {<br />&#160;&#160;&#160; margin: 0;<br />&#160;&#160;&#160; padding: 0;<br />&#160;&#160;&#160; font-size: 75%;<br />}<br />&#60;/style&#62;</p>
<p>&#60;script src=&#34;<a href="http://trirand.com/blog/jqgrid/js/jquery.js&#038;quot" rel="nofollow" target="_blank"><a href="http://trirand.com/blog/jqgrid" rel="nofollow">http://trirand.com/blog/jqgrid</a>.....&#038;quot</a>; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;<br />&#60;script src=&#34;<a href="http://trirand.com/blog/jqgrid/js/jquery-ui-1.7.2.custom.min.js&#038;quot" rel="nofollow" target="_blank"><a href="http://trirand.com/blog/jqgrid" rel="nofollow">http://trirand.com/blog/jqgrid</a>.....&#038;quot</a>; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;</p>
<p>&#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; media=&#34;screen&#34; href=&#34;<a href="http://trirand.com/blog/jqgrid/themes/redmond/jquery-ui-1.7.1.custom.css&#038;quot" rel="nofollow" target="_blank"><a href="http://trirand.com/blog/jqgrid" rel="nofollow">http://trirand.com/blog/jqgrid</a>.....&#038;quot</a>; /&#62;<br />&#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; media=&#34;screen&#34; href=&#34;<a href="http://trirand.com/blog/jqgrid/themes/ui.jqgrid.css&#038;quot" rel="nofollow" target="_blank"><a href="http://trirand.com/blog/jqgrid" rel="nofollow">http://trirand.com/blog/jqgrid</a>.....&#038;quot</a>; /&#62;<br />&#160;<br />&#60;script src=&#34;<a href="http://trirand.com/blog/jqgrid/js/i18n/grid.locale-en.js&#038;quot" rel="nofollow" target="_blank"><a href="http://trirand.com/blog/jqgrid" rel="nofollow">http://trirand.com/blog/jqgrid</a>.....&#038;quot</a>; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;<br />&#60;script src=&#34;<a href="http://trirand.com/blog/jqgrid/js/jquery.jqGrid.min.js&#038;quot" rel="nofollow" target="_blank"><a href="http://trirand.com/blog/jqgrid" rel="nofollow">http://trirand.com/blog/jqgrid</a>.....&#038;quot</a>; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;<br />&#160;<br />&#60;script&#62;<br />var mystr =<br />&#34;&#60;?xml version=&#39;1.0&#39; encoding=&#39;utf-8&#39;?&#62;<br />&#60;invoices&#62;<br />&#160;&#160;&#160; &#60;rows&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;row&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;1&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;2010-03-01&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;3&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;4&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;5&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;data6&#60;/cell&#62;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/row&#62;<br />&#160;&#160;&#160; &#60;/rows&#62;<br />&#60;/invoices&#62;&#34;;<br />&#160;<br />jQuery(document).ready(function(){ <br />&#160; jQuery(&#34;#list&#34;).jqGrid({<br />&#160;&#160;&#160; datatype: &#39;xmlstring&#39;,<br />&#160;&#160;&#160; datastr : mystr,<br />&#160;&#160;&#160; colNames:[&#39;Inv No&#39;,&#39;Date&#39;, &#39;Amount&#39;,&#39;Tax&#39;,&#39;Total&#39;,&#39;Notes&#39;],<br />&#160;&#160;&#160; colModel :[ <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;invid&#39;, index:&#39;invid&#39;, width:55, sorttype:&#39;int&#39;}, <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;invdate&#39;, index:&#39;invdate&#39;, width:90, sorttype:&#39;date&#39;, datefmt:&#39;Y-m-d&#39;}, <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;amount&#39;, index:&#39;amount&#39;, width:80, align:&#39;right&#39;, sorttype:&#39;float&#39;}, <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;tax&#39;, index:&#39;tax&#39;, width:80, align:&#39;right&#39;, sorttype:&#39;float&#39;}, <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;total&#39;, index:&#39;total&#39;, width:80, align:&#39;right&#39;, sorttype:&#39;float&#39;}, <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;note&#39;, index:&#39;note&#39;, width:150, sortable:false} ],<br />&#160;&#160;&#160; pager: &#39;#pager&#39;,<br />&#160;&#160;&#160; rowNum:10,<br />&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; caption: &#39;My first grid&#39;<br />&#160; }); <br />}); <br />&#60;/script&#62;<br />&#160;<br />&#60;/head&#62;<br />&#60;body&#62;<br />&#60;table id=&#34;list&#34;&#62;&#60;/table&#62; <br />&#60;div id=&#34;pager&#34;&#62;&#60;/div&#62; <br />&#60;/body&#62;<br />&#60;/html&#62;</p>
</div>
<p>I don&#39;t know what is wrong with this.&#160; I do have the css and js files on my server but after not getting it running online I&#39;m hoping to just see the most basic working example possible to get started.</p>
<p>Is there something obviously wrong?</p>
<p>Thanks</p>
]]></description>
        	        	<pubDate>Fri, 16 Apr 2010 20:02:41 +0300</pubDate>
        </item>
</channel>
</rss>