<?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: jqGrid : exporting 'formatted' data</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-exporting-formatted-data</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/jqgrid-exporting-formatted-data/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on jqGrid : exporting 'formatted' data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-exporting-formatted-data#p31267</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-exporting-formatted-data#p31267</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Â </p>
<p>The data in grid parameters is source data. The formated data come when a new page is loaded.</p>
<p>Sorry, this is very basic and it is difficultÂ  to make additional function for this purpose.</p>
<p>Â </p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Tue, 21 Oct 2014 17:58:36 +0300</pubDate>
        </item>
        <item>
        	<title>Rajesh on jqGrid : exporting 'formatted' data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-exporting-formatted-data#p31197</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-exporting-formatted-data#p31197</guid>
        	        	<description><![CDATA[<p><strong>Objective</strong>: To export data displayed in jqGrid as CSV maintaining existing formatting. Make a generic utility to be used across multiple webpages using jqGrid for exporting data.</p>
<p>CurrentlyÂ I am able to create a csv formatted data from jqgrid and pass it to backend to be saved as .csv file.</p>
<p><strong>Steps Taken</strong>:</p>
<ul>
<li>Used
<p><input type='button' class='sfcodeselect' name='sfselectit3107' value='Select Code' data-codeid='sfcode3107' /></p>
<div class='sfcode' id='sfcode3107'>jqGrid('getGridParam', 'data')</div>
<p> to get all row data</p>
</li>
<li>Used
<p><input type='button' class='sfcodeselect' name='sfselectit4673' value='Select Code' data-codeid='sfcode4673' /></p>
<div class='sfcode' id='sfcode4673'>jqGrid('getGridParam', 'colNames')</div>
<p> to get colnames</p>
</li>
<li>Created a tab separated output- No issues.</li>
</ul>
<p><strong>Problem</strong>: Since I used </p>
<p><input type='button' class='sfcodeselect' name='sfselectit9641' value='Select Code' data-codeid='sfcode9641' /></p>
<div class='sfcode' id='sfcode9641'>'data'</div>
<p>, the column values are the raw values and not the formatted values.<br />
For eg, from backend the date comes as a long -</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1069' value='Select Code' data-codeid='sfcode1069' /></p>
<div class='sfcode' id='sfcode1069'>1411674947000</div>
<p> but using custom formatter in jqgrid it displays as </p>
<p><input type='button' class='sfcodeselect' name='sfselectit7665' value='Select Code' data-codeid='sfcode7665' /></p>
<div class='sfcode' id='sfcode7665'>2014-09-25 19:55:47</div>
<p>.</p>
<p>Similarly there are error codes which come as numeric values but formatted to show some text.<br />
The objective is to use the formatted value eg '2014-09-25 19:55:47' in the csv output instead of '1411674947000'.</p>
<p>(I posted the same question in another forum without any success.(<a href="http://stackoverflow.com/questions/26105629/jqgrid-exporting-formatted-data" rel="nofollow" target="_blank"><a href="http://stackoverflow.com/quest" rel="nofollow">http://stackoverflow.com/quest</a>.....atted-data</a>)Â Sorry for being repetitive.)</p>
]]></description>
        	        	<pubDate>Fri, 03 Oct 2014 19:19:26 +0300</pubDate>
        </item>
</channel>
</rss>