<?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: problem with exporting grid configuration in jsonstring format</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-exporting-grid-configuration-in-jsonstring-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/problem-with-exporting-grid-configuration-in-jsonstring-format/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>nj on problem with exporting grid configuration in jsonstring format</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-exporting-grid-configuration-in-jsonstring-format#p28136</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-exporting-grid-configuration-in-jsonstring-format#p28136</guid>
        	        	<description><![CDATA[<p>Hi Asshiah,</p>
<p>I am trying to import some predefined grid configs from a DB. However I cannot get it working.</p>
<p>Would you mind sharing your ashx import handler?</p>
<p>thanks in advance.</p>
<p>Nj</p>
]]></description>
        	        	<pubDate>Sun, 27 Jan 2013 20:11:35 +0200</pubDate>
        </item>
        <item>
        	<title>Asshiah on problem with exporting grid configuration in jsonstring format</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-exporting-grid-configuration-in-jsonstring-format#p17109</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-exporting-grid-configuration-in-jsonstring-format#p17109</guid>
        	        	<description><![CDATA[</p>
<p>Finally!!!</p>
</p>
<p>I have succeeded in exporting the configuration and saving it on the server side.</p>
</p>
<p>The trick was:</p>
</p>
<ul>
<li>Be sure that there is neither a single or a double quote in a column name.</li>
<li>Do not specify a POST parameter in order to pass the export data to the server but rather send the result of the jqGridExport method directly into the AJAX call data parameter.</li>
<li>On the server side, read the request inputstream directly from the http context with a streamreader and convert it to a string afterwards. </li>
</ul>
<p>Here is an exemple of the AJAX call definition:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4321' value='Select Code' data-codeid='sfcode4321' /></p>
<div class='sfcode' id='sfcode4321'>$.ajax({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; type: &#39;POST&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; contentType: &#39;application/json; charset=utf-8&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#34;/handlers/testJqGridExport.ashx&#34;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; data: $(&#39;#grille_altares&#39;).jqGridExport(<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; exptype: &#39;jsonstring&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; root: &#39;Settings&#39;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; )<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</div>
</p>
<p>I hope this will help some people.</p>
</p>
<p>Thanks!</p>
]]></description>
        	        	<pubDate>Wed, 12 May 2010 17:12:09 +0300</pubDate>
        </item>
        <item>
        	<title>Asshiah on problem with exporting grid configuration in jsonstring format</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-exporting-grid-configuration-in-jsonstring-format#p17105</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-exporting-grid-configuration-in-jsonstring-format#p17105</guid>
        	        	<description><![CDATA[<p>Apparently, I don&#39;t have any double quotes in my column names.</p>
</p>
<p>All I know is that when I try to read the content of the exportdata on the server side, I get an empty string.</p>
<p>But when I look at what is posted with firebug, the exportdata is not empty but appear to be too long for firebug.</p>
</p>
<p>I can&#39;t figure it out.</p>
]]></description>
        	        	<pubDate>Wed, 12 May 2010 14:30:16 +0300</pubDate>
        </item>
        <item>
        	<title>Asshiah on problem with exporting grid configuration in jsonstring format</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-exporting-grid-configuration-in-jsonstring-format#p17103</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-exporting-grid-configuration-in-jsonstring-format#p17103</guid>
        	        	<description><![CDATA[<p>Unfortunately, I already use the POST method.</p>
</p>
<p>Maybe this is not a transmission problem but rather a problem with the configuration content like the column names for instance that can contain double quotes.</p>
</p>
<p>I am presently investigating it.</p>
]]></description>
        	        	<pubDate>Wed, 12 May 2010 14:16:21 +0300</pubDate>
        </item>
        <item>
        	<title>tony on problem with exporting grid configuration in jsonstring format</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-exporting-grid-configuration-in-jsonstring-format#p17097</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-exporting-grid-configuration-in-jsonstring-format#p17097</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>If you use get method in the ajax that send the data to the server this is quite possible,</p>
<p>Please use post method in the ajax request when you send data to the server.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 12 May 2010 12:56:13 +0300</pubDate>
        </item>
        <item>
        	<title>Asshiah on problem with exporting grid configuration in jsonstring format</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-exporting-grid-configuration-in-jsonstring-format#p17034</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-exporting-grid-configuration-in-jsonstring-format#p17034</guid>
        	        	<description><![CDATA[<p>In fact, it appears when looking the source code of the request with firebug that the encoding is the same for the advanced search and the export jsonstring.</p>
</p>
<p>Both are encoding using urlencoding.</p>
</p>
<p>Only, for the filters, firebug can decode the jsonobject while it can&#39;t for the exportdata.</p>
<p>The exportdata appears to be too big for firebug.</p>
</p>
<p>Thus, if the filters for the search can be read on the server side, so should be the exportdata.</p>
</p>
<p>Is it possible that an exportdata too big prevents it from beeing transmitted entirely to the server?</p>
]]></description>
        	        	<pubDate>Mon, 10 May 2010 17:20:34 +0300</pubDate>
        </item>
        <item>
        	<title>Asshiah on problem with exporting grid configuration in jsonstring format</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-exporting-grid-configuration-in-jsonstring-format#p17033</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-exporting-grid-configuration-in-jsonstring-format#p17033</guid>
        	        	<description><![CDATA[<p>I have tried many things but nothing worked.</p>
</p>
<p>When I use advanced search, the different filters are passed to an url in JSON format with a post variable named "filters":</p>
</p>
<pre class="code html4strict"><p><input type='button' class='sfcodeselect' name='sfselectit2316' value='Select Code' data-codeid='sfcode2316' /></p><div class='sfcode' id='sfcode2316'>filters = <br /> {&#34;groupOp&#34;:&#34;AND&#34;,<br /> &#34;rules&#34;:[<br /> {&#34;field&#34;:&#34;invdate&#34;,&#34;op&#34;:&#34;ge&#34;,&#34;data&#34;:&#34;2007-10-06&#34;},<br /> {&#34;field&#34;:&#34;invdate&#34;,&#34;op&#34;:&#34;le&#34;,&#34;data&#34;:&#34;2007-10-20&#34;}, <br /> {&#34;field&#34;:&#34;name&#34;,&#34;op&#34;:&#34;bw&#34;,&#34;data&#34;:&#34;Client 3&#34;}<br /> ]<br /> }</div></pre>
<p>The json encoding of the different filters appear to be fine and don&#39;t have en encoding problem.</p>
<p>I can work with this jsonstring and use it on the server side without any problem.</p>
</p>
<p>But when I try to export the grid configuration in JSON format with the following AJAX request I get an encoding problem that prevents me from doing anything with the jsonstring in the server side:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2081' value='Select Code' data-codeid='sfcode2081' /></p>
<div class='sfcode' id='sfcode2081'>$.ajax({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; type: &#39;POST&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;  contentType: &#39;application/json; charset=utf-8&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;  url: &#34;/handlers/UsersJqGridExport.ashx&#34;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; data:  {exportdata: $(&#39;#grid_users&#39;).jqGridExport({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;  exptype: &#39;jsonstring&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; root: &#39;Settings&#39;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;  })}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</div>
<p>I get this kind of encoding:</p>
</p>
<p>exportdata=%7B%22Settings%22%3A%7B%0A%09%09%22url%22%3A%22%2Fhandlers%2FAltaresJqGridLoad.ashx%22%2C</p>
</p>
<p>Does anyone know how to send the exported configuration jsonstring with the rigth encoding?</p>
</p>
<p>Thanks.</p></p>
]]></description>
        	        	<pubDate>Mon, 10 May 2010 16:40:58 +0300</pubDate>
        </item>
        <item>
        	<title>Asshiah on problem with exporting grid configuration in jsonstring format</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-exporting-grid-configuration-in-jsonstring-format#p16940</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-exporting-grid-configuration-in-jsonstring-format#p16940</guid>
        	        	<description><![CDATA[</p>
<p>I have try to modify my JS code like this:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6946' value='Select Code' data-codeid='sfcode6946' /></p>
<div class='sfcode' id='sfcode6946'>$(&#39;#grid_users&#39;).jqGridImport({<br />&#160;&#160;&#160;&#160;&#160;  imptype: &#39;json&#39;,<br />&#160;&#160;&#160;&#160;&#160; impurl: &#34;/handlers/UsersJqGridImport.ashx&#34;,<br />&#160;&#160;&#160;&#160;&#160;  mtype: &#39;POST&#39;,<br />&#160;&#160;&#160;&#160;&#160; jsonGrid: { config: &#39;Settings&#39; },<br />&#160;&#160;&#160;&#160;&#160;  importComplete: function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;  $(&#39;#grid_users&#39;).jqGrid(&#39;navGrid&#39;, &#39;#pager_users&#39;, {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; edit:  false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; add: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; del: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;  search: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; refresh:false<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;  }).jqGrid(&#39;navButtonAdd&#39;, &#39;#pager_users&#39;, {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption:  &#39;Colonnes&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; position: &#39;last&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; title:  &#39;Show/Hide/Reorder columns&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; onClickButton: function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;  $(&#39;#grid_users&#39;).jqGrid(&#39;columnChooser&#39;, {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; done:  function(perm) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (perm) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var  gridWidth = this.jqGrid(&#39;getGridParam&#39;, &#39;width&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;  this.jqGrid(&#39;setGridWidth&#39;, gridWidth);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;  this.jqGrid(&#39;remapColumns&#39;, perm, true);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $.ajax({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;  type: &#39;POST&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; contentType: &#39;application/json;  charset=utf-8&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url:  &#34;/handlers/UsersJqGridExport.ashx&#34;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; data:  $(&#39;#grid_users&#39;).jqGridExport({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;  exptype: &#39;jsonstring&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; root: &#39;Settings&#39;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;  })<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;  });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160; });</div>
<p>Now with firebug I get this when looking at what is posted:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit162' value='Select Code' data-codeid='sfcode162' /></p>
<div class='sfcode' id='sfcode162'>{"Settings":{ </div>
<p><input type='button' class='sfcodeselect' name='sfselectit5208' value='Select Code' data-codeid='sfcode5208' /></p>
<div class='sfcode' id='sfcode5208'> "url":"/handlers/UsersJqGridLoad.ashx", </div>
<p><input type='button' class='sfcodeselect' name='sfselectit4202' value='Select Code' data-codeid='sfcode4202' /></p>
<div class='sfcode' id='sfcode4202'> "height":300.....</div>
<p>So now I don&#39;t have any encoding problem.</p>
</p>
<p>The thing is how can I get the JSON data on the server side?</p></p>
]]></description>
        	        	<pubDate>Thu, 06 May 2010 11:55:43 +0300</pubDate>
        </item>
        <item>
        	<title>Asshiah on problem with exporting grid configuration in jsonstring format</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-exporting-grid-configuration-in-jsonstring-format#p16937</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-exporting-grid-configuration-in-jsonstring-format#p16937</guid>
        	        	<description><![CDATA[<p>I think is is automatically decoded on the serverside or I would&#39;nt get an empty string.</p>
</p>
<p>Maybe the problem is that the decoded jsonstring contains double quotes and it is a problem to hold this quotes in a normal string.</p>
]]></description>
        	        	<pubDate>Thu, 06 May 2010 11:18:58 +0300</pubDate>
        </item>
        <item>
        	<title>Asshiah on problem with exporting grid configuration in jsonstring format</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-exporting-grid-configuration-in-jsonstring-format#p16936</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-exporting-grid-configuration-in-jsonstring-format#p16936</guid>
        	        	<description><![CDATA[<p>In fact this encoding is an encoding that prevents problem with unsafe characters by encoding them with % followed by the ISO-8859-1 corresponding code of the character.</p>
</p>
<p>The thing is I don&#39;t know if it is automatically decoded in the server side or not.</p>
]]></description>
        	        	<pubDate>Thu, 06 May 2010 10:55:49 +0300</pubDate>
        </item>
        <item>
        	<title>Asshiah on problem with exporting grid configuration in jsonstring format</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-exporting-grid-configuration-in-jsonstring-format#p16935</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-exporting-grid-configuration-in-jsonstring-format#p16935</guid>
        	        	<description><![CDATA[<p>I can&#39;t figure it out. What can be the cause for this wrong encoding? And is it really this encoding problem that disable the possibility to get this data on the server side ina&#160; string?</p>
]]></description>
        	        	<pubDate>Thu, 06 May 2010 10:40:59 +0300</pubDate>
        </item>
        <item>
        	<title>Asshiah on problem with exporting grid configuration in jsonstring format</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-exporting-grid-configuration-in-jsonstring-format#p16912</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-exporting-grid-configuration-in-jsonstring-format#p16912</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>I am using jqGridImport and jqGridExport to load the configuration of a grid and to save it to the server after the user has modified the hidden and showed columns with a column chooser.</p>
</p>
<p>The loading works just great. The column chooser too thanks to Tony&#39;s help! <img class="spSmiley" style="margin:0" title="Laugh" src="/blog/wp-content/forum-smileys/sf-laugh.gif" alt="Laugh" /></p>
</p>
<p>However, I have a problem with the export.</p>
</p>
<p>I use this code to import the grid configuration, add a navigator and a columnchooser on it, then to export the configuration after an action has been performed in a column chooser:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3781' value='Select Code' data-codeid='sfcode3781' /></p>
<div class='sfcode' id='sfcode3781'>$(&#39;#grid_users&#39;).jqGridImport({<br />&#160;&#160;&#160;&#160;&#160; imptype: &#39;json&#39;,<br />&#160;&#160;&#160;&#160;&#160; impurl: &#34;/handlers/UsersJqGridImport.ashx&#34;,<br />&#160;&#160;&#160;&#160;&#160; mtype: &#39;POST&#39;,<br />&#160;&#160;&#160;&#160;&#160; jsonGrid: { config: &#39;Settings&#39; },<br />&#160;&#160;&#160;&#160;&#160; importComplete: function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#grid_users&#39;).jqGrid(&#39;navGrid&#39;, &#39;#pager_users&#39;, {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; edit: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; add: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; del: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; search: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; refresh:false<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }).jqGrid(&#39;navButtonAdd&#39;, &#39;#pager_users&#39;, {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: &#39;Colonnes&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; position: &#39;last&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; title: &#39;Show/Hide/Reorder columns&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; onClickButton: function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#grid_users&#39;).jqGrid(&#39;columnChooser&#39;, {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; done: function(perm) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (perm) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var gridWidth = this.jqGrid(&#39;getGridParam&#39;, &#39;width&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; this.jqGrid(&#39;setGridWidth&#39;, gridWidth);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; this.jqGrid(&#39;remapColumns&#39;, perm, true);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $.ajax({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; type: &#39;POST&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; contentType: &#39;application/json; charset=utf-8&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#34;/handlers/UsersJqGridExport.ashx&#34;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; data: {exportdata: $(&#39;#grid_users&#39;).jqGridExport({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; exptype: &#39;jsonstring&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; root: &#39;Settings&#39;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; })}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160; });</div>
</p>
<p>The thing is, when I try to get the exportdata on the serverside, I only get an empty string&#8230;</p>
</p>
<p>When using firebug, I can see that the exportdata posted in the request header has a problem with encoding:</p>
<p> exportdata=%7B%22Settings%22%3A%7B%0A%09%09%22url%22%3A%22%2Fhandlers%2FAltaresJqGridLoad.ashx%22%2C&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.. </p>
<p>Does someone have an idea on how to solve this problem?</p>
</p>
<p>Thank you.</p>
]]></description>
        	        	<pubDate>Wed, 05 May 2010 11:29:13 +0300</pubDate>
        </item>
</channel>
</rss>