<?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: jsonreader dot notation</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jsonreader-dot-notation</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/jsonreader-dot-notation/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on jsonreader dot notation</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jsonreader-dot-notation#p13849</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jsonreader-dot-notation#p13849</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Could you please send me the grid configuration and json response.</p>
<p>Thanks</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 13 Jan 2010 18:33:32 +0200</pubDate>
        </item>
        <item>
        	<title>ajax head on jsonreader dot notation</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jsonreader-dot-notation#p13787</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jsonreader-dot-notation#p13787</guid>
        	        	<description><![CDATA[<p>Sorry,</p>
<p>I know how to set the jsonReader correctly but did not do so in my simplified example for forum use:</p>
<p>&#160;jsonReader : {<br />&#160;&#160;root: &#8220;cart&#8221;,<br />&#160;&#160;repeatitems: false,<br />&#160;&#8230;<br />&#160;&#160;&#160; },</p>
</p>
<p>still doesn&#39;t work, I assume because "cart" is not an array that can be recursed through; looks like nested json arrays are hidden</p>
<p>from the grid entirely unless there is some way to map to them but I can&#39;t find anything that works for out-of-the-box config....</p>
<p>still I thought maybe it would see first row, but nothing.</p>
<p>If I need to write custom code, would appreciate some guidance as to how that might best work..</p>
<p>get and process JSON first, prune, submit to grid as object? hum...</p>
]]></description>
        	        	<pubDate>Mon, 11 Jan 2010 21:53:20 +0200</pubDate>
        </item>
        <item>
        	<title>ajax head on jsonreader dot notation</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jsonreader-dot-notation#p13785</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jsonreader-dot-notation#p13785</guid>
        	        	<description><![CDATA[<p>I&#39;m incorrect, the example above might work, but my data is a little different, as below.</p>
<p>because "cart" iis the main&#160;datanode (but is not an array), I set root to cart, but json map does not see the "contents" node below it:</p>
</p>
<p>{<br />"cart":<br />&#160;&#160;&#160;&#160; &#160;{<br />&#160;&#160;&#160;&#160; &#160;"nextId":null,<br />&#160;&#160;&#160;&#160; &#160;"viewName":null,</p>
<p>&#160;&#160;&#160;&#160; "contents":<br />&#160;&#160;&#160; &#160;[<br />&#160;&#160;&#160;&#160;&#160; {"id":"209660059","type":"food","quantity":"3"},<br />&#160;&#160;&#160;&#160; &#160;{"id":"209661059","..</p>
</p>
<p>COLUMN MODEL:</p>
<p>&#160;&#160;&#160;&#160;colModel:[<br />&#160;&#160; &#160;&#160;{name:&#39;contents.id&#39;,index:&#39;contents.id&#39;,jsonmap: &#39;contents.id&#39;},</p>
<p>&#160;&#160;&#160;&#160; {name:&#39;contents.type&#39;,index:&#39;contents.type&#39;,jsonmap:&#39;contents.type&#39;},</p>
<p>&#160;&#160;&#160;&#160; {name:&#39;contents.quantity&#39;,index:&#39;contents.quantity&#39;,jsonmap:&#39;contents.quantity&#39;}</p>
<p>&#160;&#160;&#160; ]</p>
<p>&#160;jsonReader : {<br />&#160;&#160;root: "portfolio",<br />&#160;&#160;repeatitems: false,<br />&#160;...<br />&#160;&#160;&#160; },</p>
<p>I&#39;ve tried several variations of this, none seem to work for me, does this look like it should work?</p>
<p>Grid comes up empty with no issues in the FBug console.</p>
]]></description>
        	        	<pubDate>Mon, 11 Jan 2010 21:27:57 +0200</pubDate>
        </item>
        <item>
        	<title>ajax head on jsonreader dot notation</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jsonreader-dot-notation#p13784</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jsonreader-dot-notation#p13784</guid>
        	        	<description><![CDATA[</p>
<p>I tried something similar, it didn&#39;t work.</p>
<p>The root is not "match" because match is nested, and the grid never sees&#160;the actual&#160;node it needs to recurse over, because it&#39;s nested. The grid just comes up blank. If I unnest/flatten the row data to a top level tree member, grid works great.</p>
<p>So I don&#39;t think this solution works, seems to me this should be a feature of the grid, to see inner data&#160; nodes in JSON data.</p>
</p>
<p>Has anyone here actually tried this to see what happens?</p>
<p>Is there any other discussion of this subject I might have missed?</p>
<p>If I was going to write a solution, how best to go about it?</p>
<p>thx!</p>
]]></description>
        	        	<pubDate>Mon, 11 Jan 2010 20:51:09 +0200</pubDate>
        </item>
        <item>
        	<title>tony on jsonreader dot notation</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jsonreader-dot-notation#p13592</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jsonreader-dot-notation#p13592</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>This will not work.</p>
<p>In root element you can not set a dot notations - i.e root:"t1.p" will not work</p>
<p>Try to set the root to "match" item&#160; and then in colModel set for the field the dot notation.</p>
<p>Example</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1635' value='Select Code' data-codeid='sfcode1635' /></p>
<div class='sfcode' id='sfcode1635'>
<p>colModel : [</p>
<p>....</p>
<p>{name:"some"... jsonmap: "t1.xxx"...}</p>
<p>...</p>
<p>]</p>
</div>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 06 Jan 2010 09:44:51 +0200</pubDate>
        </item>
        <item>
        	<title>xworker on jsonreader dot notation</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jsonreader-dot-notation#p13563</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jsonreader-dot-notation#p13563</guid>
        	        	<description><![CDATA[<p>noone has any insights on this?</p>
<p>/x</p>
]]></description>
        	        	<pubDate>Tue, 05 Jan 2010 09:43:39 +0200</pubDate>
        </item>
        <item>
        	<title>xworker on jsonreader dot notation</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jsonreader-dot-notation#p13551</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jsonreader-dot-notation#p13551</guid>
        	        	<description><![CDATA[<p>Hi</p>
<p>I&#39;m trying to use the dot notation in my json reader to access data.</p>
<p>This json looks like this:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8056' value='Select Code' data-codeid='sfcode8056' /></p>
<div class='sfcode' id='sfcode8056'>{"totalpages":"1", "currpage":"1","totalrecords":"1", "match":{"mid":"0","t1":{"xxx":"0","yyy":"1","p":[{"a":"1"},{"b":"2"},{"c":"3"}]},"t2":{"aaa":"1","bbb":"2",p":[{"a":"4"},{"b":"5"},{"c":"6"}]}}}</div>
<p>The jsonreader tries to acces the "p" list with this:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7434' value='Select Code' data-codeid='sfcode7434' /></p>
<div class='sfcode' id='sfcode7434'>&#160;jsonReader : {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; root:"t1.p",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; page: "currpage",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; total: "totalpages",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; records: "totalrecords",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; repeatitems: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; id: "0"<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },</div>
<p>But I get parser error. Is it possible to use the dot notation like that?</p>
<p>Thanks</p>
<p>x</p>
]]></description>
        	        	<pubDate>Mon, 04 Jan 2010 14:23:01 +0200</pubDate>
        </item>
</channel>
</rss>