<?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: Is export bugged or am I just doing something wrong?</title>
	<link>http://www.trirand.com/blog/?page_id=393/discussion/is-export-bugged-or-am-i-just-doing-something-wrong</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/discussion/is-export-bugged-or-am-i-just-doing-something-wrong/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>beckdawg83 on Is export bugged or am I just doing something wrong?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/is-export-bugged-or-am-i-just-doing-something-wrong#p24659</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/is-export-bugged-or-am-i-just-doing-something-wrong#p24659</guid>
        	        	<description><![CDATA[<p>To follow up, I managed to get it working slightly by posting this into my controller instead of the export.</p>
</p>
<p>&#39;{"grid": &#39; + JSON.stringify($(&#39;#grid&#39;).jqGrid("getGridParam")) + &#39;}&#39;;</p>
</p>
<p>However, this appears to break subgrids. I get a second subgrid column header and other stuff. That being said, it makes me believe the issue is that the export is posting in something that&#39;s not invalid. I tried a bunch of things to get this working so I might mistake something here but I believe I tried xml instead and it included \\n characters. So, it&#39;s highly likely that it&#39;s not stripping the data correctly for whatever reason. What I was doing was posting it into a spring controller as a string using jackson to marshall. So, it&#39;s possible that some where there its encoding got screwed up too. I didn&#39;t want to have to build an object to map it to since I was never going to be altering that data on the back end. Also, I noticed when I had a subgrid it wasn&#39;t posting in a valid json. The function javascript wasn&#39;t playing nice with things.</p>
<p>Either way, I feel like this area of the documentation could use a lot of love. A working example would be great.</p>
]]></description>
        	        	<pubDate>Fri, 16 Sep 2011 23:57:33 +0300</pubDate>
        </item>
        <item>
        	<title>beckdawg83 on Is export bugged or am I just doing something wrong?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/is-export-bugged-or-am-i-just-doing-something-wrong#p24649</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/is-export-bugged-or-am-i-just-doing-something-wrong#p24649</guid>
        	        	<description><![CDATA[<p>I&#39;m doing a proof of concept for my work and I&#39;m bumping into issues. My base grid looks like this.</p>
<p>url : &#60;link&#62;,<br />datatype : &#39;json&#39;,<br />colNames : [&#39;Date&#39;, &#39;Vendor&#39;, &#39;Item #&#39;, &#39;Pack&#39;, &#39;Description&#39;, &#39;History&#39; ],<br />colModel : [ <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; { name : &#39;date&#39;, index : &#39;date&#39;, width: 75, sortType: &#39;date&#39;, datefmt: &#39;mm/dd/yyyy&#39;}, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; { name : &#39;vndr&#39;, index : &#39;vndr&#39;, width: 300},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; { name : &#39;item&#39;, index : &#39;item&#39;, width: 60, align : &#39;left&#39; },<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; { name : &#39;pack&#39;, index : &#39;pack&#39;, width: 40, align : &#39;right&#39;, search: false },<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; { name : &#39;desc&#39;, index : &#39;desc&#39;, width: 300, align : &#39;left&#39; },<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; { name : &#39;hist&#39;, index : &#39;hist&#39;, width: 50 } ],<br />rowNum : 25,<br />height: &#39;auto&#39;,<br />width: 1036,<br />altRows: true,<br />sortable: true,<br />pager : &#39;#pager&#39;, sortname : &#39;date&#39;, sortorder : &#39;desc&#39;, viewrecords : true,<br />jsonReader : { root : &#39;root&#39;, page : &#39;currentPage&#39;, total : &#39;totalPages&#39;, records : &#39;totalCount&#39;, repeatitems : false }, <br />caption : &#39;Text&#39;</p>
</p>
<p>When I go to export via this code</p>
<p>$(&#39;&#60;table id&#62;&#39;).jqGridExport({exptype:&#39;jsonstring&#39;});</p>
<p>I seem to get every config option available including the defaults instead of just the stuff I&#39;ve manually defined. According to the /jqgridwiki/doku.php?id=wiki:import_methods</p>
</p>
<p>Like I said, I could just roll my own export but that seems like a lot of overhead. I might just be doing this wrong but searching google for 2-3 days hasn&#39;t netted me any working examples on line other than some asp.net stuff which I can&#39;t run(java). So, I was just curious if I was doing this wrong or if this was maybe a bug that hadn&#39;t been found because import/export isn&#39;t that often used.</p>
</p>
<p>Any help would be greatly appreciated.</p>
]]></description>
        	        	<pubDate>Fri, 16 Sep 2011 18:04:30 +0300</pubDate>
        </item>
</channel>
</rss>