<?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: Custom JSON format</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/custom-json-format</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/custom-json-format/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>raul.arabaolaza on Custom JSON format</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-json-format#p15563</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-json-format#p15563</guid>
        	        	<description><![CDATA[<p>Hi tony,</p>
</p>
<p>First of all thanks for your answer.</p>
</p>
<p>My apologies, i&#39;ve just find that maybe is not a data format problem but a connection problem, if i donwload the json file the data is displayed correctly using:&#160;</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6440' value='Select Code' data-codeid='sfcode6440' /></p>
<div class='sfcode' id='sfcode6440'>
<p>$(function(){</p>
<p>grid=$(&#34;#tabla&#34;).jqGrid({</p>
<p>&#160;&#160; datatype:&#39;jsonp&#39;,</p>
<p>&#160;&#160; url:&#39;./persona.json&#39;,</p>
<p>&#160;&#160; jsonReader : {</p>
<p>&#160;&#160; &#160; &#160; root: &#34;personae&#34;,</p>
<p>&#160;&#160; &#160; &#160; page: &#34;&#34;,</p>
<p>&#160;&#160; &#160; &#160; total: &#34;&#34;,</p>
<p>&#160;&#160; &#160; &#160;id:&#39;id&#39;,</p>
<p>&#160;&#160; &#160; &#160;repeatitems: false,</p>
<p>&#160;&#160; &#160; &#160;cell:&#34;&#34;</p>
<p>&#160;&#160;},</p>
<p>&#160;colNames:[&#39;Identificador&#39;,&#39;Version&#39;,&#39;Nombre&#39;,&#39;Apellidos&#39;,&#39;Edad&#39;],</p>
<p>&#160;colModel :[</p>
<p>&#160;&#160; &#160; {name:&#39;id&#39;, index:&#39;id&#39;, width:155},</p>
<p>&#160;&#160; &#160; {name:&#39;version&#39;, index:&#39;version&#39;, width:155},</p>
<p>&#160;&#160; &#160; {name:&#39;nombre&#39;, index:&#39;nombre&#39;, width:155},</p>
<p>&#160;&#160; &#160; {name:&#39;apellidos&#39;, index:&#39;apellidos&#39;, width:155},</p>
<p>&#160;&#160; &#160; {name:&#39;edad&#39;, index:&#39;edad&#39;, width:155}</p>
<p>&#160;],</p>
<p>&#160;pager: &#39;#paginador&#39;,</p>
<p>&#160;rowNum:10,</p>
<p>&#160;rowList:[10,20,30],</p>
<p>&#160;sortname: &#39;Nombre&#39;,</p>
<p>&#160;sortorder: &#39;desc&#39;,</p>
<p>&#160;viewrecords: true,</p>
<p>&#160;caption: &#39;Mi primer grid&#39;</p>
<p>});</p>
</div>
<p>Problems arise when i tried the following urls 192.168.1.7:8080/Rest1/persona.json or <a onclick="javascript:pageTracker._trackPageview(&#39;/outbound/article/http://192.168.1.7:8080/Rest1/persona.json&#39;);" rel="nofollow" href="http://192.168.1.7:8080/Rest1/persona.json" target="_blank"></a><a href="http://192.168.1.7:8080/Rest1/" rel="nofollow" target="_blank">http://192.168.1.7:8080/Rest1/</a>.....rsona.json, but that is another history and i &#39;ve a lot of documentation to read. <img class="wp-smiley" src="/blog/wp-includes/images/smilies/icon_smile.gif" alt=":)" /></p>
</p>
<p>Thanks a lot for your help.</p>
<p>Regards, Ra&#250;l</p>
]]></description>
        	        	<pubDate>Wed, 10 Mar 2010 00:07:59 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Custom JSON format</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-json-format#p15537</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-json-format#p15537</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Could you please post the entrie grid configuration including jsonReader</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 09 Mar 2010 19:49:04 +0200</pubDate>
        </item>
        <item>
        	<title>raul.arabaolaza on Custom JSON format</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-json-format#p15443</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-json-format#p15443</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>I would like to populate a grid with json data, but i don&#39;t have control over the json format, after reading the wiki it seems that i need some items in the data like num of records and so even if i use jsonReader, but the format i have is:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2747' value='Select Code' data-codeid='sfcode2747' /></p>
<div class='sfcode' id='sfcode2747'>{&#34;personae&#34;:[{&#34;id&#34;:1,&#34;version&#34;:0,&#34;nombre&#34;:&#34;juan&#34;,&#34;apellidos&#34;:&#34;cuesta&#34;,&#34;edad&#34;:12},{&#34;id&#34;:2,&#34;version&#34;:0,&#34;nombre&#34;:&#34;pepe&#34;,&#34;apellidos&#34;:&#34;cuest&#34;,&#34;edad&#34;:23}]}</div>
</p>
<p>I&#39;ve not been able to populate the grid, i can convert the data to array and use it but i&#39;ll loose paging functionality, the same happends if i use json string.</p>
</p>
<p>Anybdoy knows if i can use that data&#39;s fromat with jqgrid? An if so How?</p>
</p>
<p>Thanks in advance, Ra&#250;l&#160;</p></p>
]]></description>
        	        	<pubDate>Sat, 06 Mar 2010 17:38:43 +0200</pubDate>
        </item>
</channel>
</rss>