<?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: header/column not match after jqGridExport</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/headercolumn-not-match-after-jqgridexport</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/bugs/headercolumn-not-match-after-jqgridexport/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>EmpowerBoy on header/column not match after jqGridExport</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/headercolumn-not-match-after-jqgridexport#p23040</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/headercolumn-not-match-after-jqgridexport#p23040</guid>
        	        	<description><![CDATA[<p>In order for it to work you should replace this:</p>
</p>
<p>var c = b.extend({}, b(this).jqGrid("getGridParam"));</p>
</p>
<p>With this:</p>
</p>
<p>var c = b.extend(<strong>true, </strong>{}, b(this).jqGrid("getGridParam"));</p>
</p>
<p>The difference is that the latter option makes a deep copy, instead of a shallow one.</p>
]]></description>
        	        	<pubDate>Thu, 05 May 2011 22:59:34 +0300</pubDate>
        </item>
        <item>
        	<title>tony on header/column not match after jqGridExport</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/headercolumn-not-match-after-jqgridexport#p15867</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/headercolumn-not-match-after-jqgridexport#p15867</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>This should not happen since of this,</p>
<p>var c = b.extend({}, b(this).jqGrid("getGridParam"));</p>
<p>but I will check it.</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 22 Mar 2010 11:16:42 +0200</pubDate>
        </item>
        <item>
        	<title>JonL on header/column not match after jqGridExport</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/headercolumn-not-match-after-jqgridexport#p15823</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/headercolumn-not-match-after-jqgridexport#p15823</guid>
        	        	<description><![CDATA[<p>I found out the cause for the header/column not match.</p>
<p>I have multiselect: true, which when I called jqGridExport</p>
<p>the actual colModel and colName was splice also. I highlight the code in <span style="color: #ff00ff;">purple</span>.</p>
<p>Is there a way to duplicate the object&#160;&#160;instead of using the actual object?</p>
</p>
<p><span style="font-size: x-small;">jqGridExport: </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">function(a){</span></span></p>
<p><span style="font-size: x-small;"><span style="font-size: x-small;"></span></span></p>
<p>a = b.extend({ exptype:</p>
</p>
<p><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"xmlstring"</span></span><span style="font-size: x-small;">, root: </span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"grid"</span></span><span style="font-size: x-small;">, ident: </span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"\t"</span></span><span style="font-size: x-small;"> }, a &#124;&#124; {}); </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">var</span></span><span style="font-size: x-small;"> e = </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">null</span></span><span style="font-size: x-small;">; </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">this</span></span><span style="font-size: x-small;">.each(</span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">function</span></span><span style="font-size: x-small;">() {</p>
<p></span></p>
<p><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">if</span></span><span style="font-size: x-small;"> (</span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">this</span></span><span style="font-size: x-small;">.grid) {</p>
<p></span></p>
<p><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">var</span></span><span style="font-size: x-small;"> c = b.extend({}, b(</span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">this</span></span><span style="font-size: x-small;">).jqGrid(</span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"getGridParam"</span></span><span style="font-size: x-small;">)); </span></p>
<p><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">if</span></span><span style="font-size: x-small;"> (c.rownumbers) { c.colNames.splice(0, 1); c.colModel.splice(0, 1) }</span></p>
<p><strong><span style="color: #ff00ff;"><span style="font-size: x-small;">&#160;</span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">if</span></span><span style="font-size: x-small;"> (c.multiselect) {</span></span></strong></p>
<p><span style="font-size: x-small;"><strong><span style="color: #ff00ff;">c.colNames.splice(0, 1); c.colModel.splice(0, 1) </span></strong></span></p>
<p><strong><span style="color: #ff00ff;">}</span></strong></p>
</p>
<p><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">if</span></span><span style="font-size: x-small;"> (c.subgrid) {</span></p>
<p><span style="font-size: x-small;">c.colNames.splice(0,1); c.colModel.splice(0, 1)</span></p>
<p><span style="font-size: x-small;">} </span></p>
<p><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">if</span></span><span style="font-size: x-small;"> (c.treeGrid) </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">for</span></span><span style="font-size: x-small;"> (</span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">var</span></span><span style="font-size: x-small;"> j </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">in</span></span><span style="font-size: x-small;"> c.treeReader) { c.colNames.splice(c.colNames.length - 1); c.colModel.splice(c.colModel.length - 1) } </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">switch</span></span><span style="font-size: x-small;"> (a.exptype) { </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">case</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"xmlstring"</span></span><span style="font-size: x-small;">: e = </span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"&#60;"</span></span><span style="font-size: x-small;"> + a.root + </span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"&#62;"</span></span><span style="font-size: x-small;"> + xmlJsonClass.json2xml(c, a.ident) + </span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"&#60;/"</span></span><span style="font-size: x-small;"> + a.root + </span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"&#62;"</span></span><span style="font-size: x-small;">; </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">break</span></span><span style="font-size: x-small;">; </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">case</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"jsonstring"</span></span><span style="font-size: x-small;">: e = </span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"{"</span></span><span style="font-size: x-small;"> + xmlJsonClass.toJson(c, a.root, a.ident) + </span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"}"</span></span><span style="font-size: x-small;">; </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">if</span></span><span style="font-size: x-small;"> (c.postData.filters != undefined) { e = e.replace(/filters</span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">":"</span></span><span style="font-size: x-small;">/, </span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">&#39;filters":&#39;</span></span><span style="font-size: x-small;">); e = e.replace(/}]}</span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"/, "</span></span><span style="font-size: x-small;">}]}</span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">") } break }</span></span></p>
<p><span style="font-size: x-small;"></span></p>
<p>}</p>
<p>});</p>
</p>
<p><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">return</span></span><span style="font-size: x-small;"> e</span></p>
<p>},</p></p>
]]></description>
        	        	<pubDate>Thu, 18 Mar 2010 23:08:22 +0200</pubDate>
        </item>
        <item>
        	<title>JonL on header/column not match after jqGridExport</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/headercolumn-not-match-after-jqgridexport#p15819</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/headercolumn-not-match-after-jqgridexport#p15819</guid>
        	        	<description><![CDATA[<p>I am currently using jqGrid 3.6.4.</p>
<p>I tried to download all the files again but it still the same.</p>
</p>
<p>Here are the js files I am using:</p>
<p>jquery-1.3.2.min.js</p>
<p>i18n/grid.locale-en.js</p>
<p>jquery-ui-1.7.2.custom.min.js</p>
<p>jquery.jqGrid.min.js</p>
]]></description>
        	        	<pubDate>Thu, 18 Mar 2010 17:21:50 +0200</pubDate>
        </item>
        <item>
        	<title>tony on header/column not match after jqGridExport</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/headercolumn-not-match-after-jqgridexport#p15807</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/headercolumn-not-match-after-jqgridexport#p15807</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Which version is used?</p>
<p>Try with the latest one.</p>
<p>regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 18 Mar 2010 11:25:41 +0200</pubDate>
        </item>
        <item>
        	<title>JonL on header/column not match after jqGridExport</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/headercolumn-not-match-after-jqgridexport#p15795</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/headercolumn-not-match-after-jqgridexport#p15795</guid>
        	        	<description><![CDATA[<p>After I called jqGridExport, the DND header does not match up with the data if I drag the header. &#160;Is this a bug or there&#39;s a work around for this?</p>
</p>
<p>here&#39;s my function:</p>
<p><span style="font-size: x-small;"></span></p>
<p>$(</p>
</p>
<p><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"#ExportMe"</span></span><span style="font-size: x-small;">).click(</span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">function</span></span><span style="font-size: x-small;">() {</p>
<p></span></p>
<p><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">var</span></span><span style="font-size: x-small;"> s;</span></p>
<p><span style="font-size: x-small;"></span></p>
<p>s = jQuery(</p>
</p>
<p><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"#list1"</span></span><span style="font-size: x-small;">).jqGrid(</span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">&#39;jqGridExport&#39;</span></span><span style="font-size: x-small;">, { exptype: </span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">&#39;xmlstring&#39;</span></span><span style="font-size: x-small;">, root: </span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">&#39;grid&#39;</span></span><span style="font-size: x-small;">, ident: </span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">&#39;\t&#39;</span></span><span style="font-size: x-small;"> });</span></p>
<p>});</p></p>
]]></description>
        	        	<pubDate>Thu, 18 Mar 2010 00:11:56 +0200</pubDate>
        </item>
</channel>
</rss>