<?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: Renaming columns with same data field</title>
	<link>http://www.trirand.com/blog/?page_id=393/treegrid/renaming-columns-with-same-data-field</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/treegrid/renaming-columns-with-same-data-field/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>sneer0101 on Renaming columns with same data field</title>
        	<link>http://www.trirand.com/blog/?page_id=393/treegrid/renaming-columns-with-same-data-field#p30073</link>
        	<category>TreeGrid</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/treegrid/renaming-columns-with-same-data-field#p30073</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>Im looking to rename column names in jqGrid dynamically.</p>
</p>
<p>The issue I have is that the same datafield is used on three columns in my table. These are all XML fields that I will deserialize to show the relevant values.</p>
</p>
<p>This is the javascript that I have generated:</p>
</p>
<pre id="line1">$(&#39;#dataGrid&#39;).jqGrid(&#39;setLabel&#39;,&#39;XMLDetails&#39;, &#39;Dem&#39;, {&#39;background&#39;:&#39;&#39;});
$(&#39;#dataGrid&#39;).jqGrid(&#39;setLabel&#39;,&#39;XMLDetails&#39;, &#39;FRA&#39;, {&#39;background&#39;:&#39;&#39;});
$(&#39;#dataGrid&#39;).jqGrid(&#39;setLabel&#39;,&#39;XMLDetails&#39;, &#39;EOL&#39;, {&#39;background&#39;:&#39;&#39;});</pre>
<p>It currently sets the first XML column to &#39;EOL&#39;</p>
<p>I&#39;ve tried using jsonmap without much success. </p>
<p>I was thinking I could use something like a jquery each function, but I havent a clue where to start.</p>
<p>Any ideas would be much appreciated. </p>
<p>Thanks.</p>
]]></description>
        	        	<pubDate>Fri, 10 Jan 2014 17:55:27 +0200</pubDate>
        </item>
</channel>
</rss>