<?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: Treat local data as jsondata</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/treat-local-data-as-jsondata</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/feature-request/treat-local-data-as-jsondata/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>lodr on Treat local data as jsondata</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/treat-local-data-as-jsondata#p24058</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/treat-local-data-as-jsondata#p24058</guid>
        	        	<description><![CDATA[<p>Hello again.</p>
<p>I have another request... (but I want to contribute with code this time...)</p>
<p>Could it be possible to treat local data as JSON data? For example, I have this column model:</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160; [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;id&#39;, jsonmap:&#39;itemid&#39;, key:true, label:&#39;Id&#39;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;name&#39;, jsonmap:&#39;name&#39;, label:&#39;Item&#39;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;price_euro&#39;, jsonmap:&#39;price&#39;, formatter:BCListExample.euro, label:&#39;Price in &#8364;&#39;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;price_dollar&#39;, jsonmap:&#39;price&#39;, formatter:BCListExample.dollar, label:&#39;Price in $&#39;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;stock&#39;, jsonmap:&#39;stock&#39;, label:&#39;Stock&#39;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; ]</p>
<p>When I update a row, I commit the changes to the server and fetch <strong>only</strong> that row again to replace the grid row with the data returned by the server so I use <strong>setRowData</strong> to update the grid. But setRowData access to the object by looking into &#39;name&#39; field ignoring &#39;jsonmap&#39; and (as I saw in the source code) not resolving &#39;dot notation&#39;.</p>
<p>I&#39;ve changed this to consider &#39;dot notation&#39; and jsonmap but I think the correct way is to consider localdata as JSON data.</p>
<p>What is your opinion?</p>
<p>Cheers and thanks!</p>
]]></description>
        	        	<pubDate>Mon, 25 Jul 2011 19:29:22 +0300</pubDate>
        </item>
</channel>
</rss>