<?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: Unable to load/import grid from JSON string gen by jqGridExport</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/unable-to-loadimport-grid-from-json-string-gen-by-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/help/unable-to-loadimport-grid-from-json-string-gen-by-jqgridexport/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>spock on Unable to load/import grid from JSON string gen by jqGridExport</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/unable-to-loadimport-grid-from-json-string-gen-by-jqgridexport#p19221</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/unable-to-loadimport-grid-from-json-string-gen-by-jqgridexport#p19221</guid>
        	        	<description><![CDATA[<p>Ok I figured out a workaround instead of exporting and importing. I&#39;m using JQGridState &#160;with jstorage backend <a href="https://bitbucket.org/rpgkaiser/jqgridstate/issue/1/column-state-not-persisted-with-columnchooser&#160;" rel="nofollow" target="_blank"></a><a href="https://bitbucket.org/rpgkaiser/jqgridstate/issue/1/column-state-not-persisted-with-columnchooser&#038;nbsp" rel="nofollow" target="_blank">https://bitbucket.org/rpgkaiser/jqgridstate/issue/1/column-state-not-persisted-with-columnchooser&#038;nbsp</a>;.</p>
]]></description>
        	        	<pubDate>Fri, 20 Aug 2010 00:08:05 +0300</pubDate>
        </item>
        <item>
        	<title>spock on Unable to load/import grid from JSON string gen by jqGridExport</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/unable-to-loadimport-grid-from-json-string-gen-by-jqgridexport#p19219</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/unable-to-loadimport-grid-from-json-string-gen-by-jqgridexport#p19219</guid>
        	        	<description><![CDATA[<p>I&#39;m making progress. I ended up going through grid.import.js to see what jqGridImport was doing. My thought is you feed in a json string which was generated from jqGridExport and then it should just work. Well my "ReferenceError: Can&#39;t find variable "grid" " error was due to the json string not having a grid root " {"grid": " after going through the functions. I ended up using the "json" variable ( json = $.jgrid.parse(jsonstr); ) from the JsonConvert var/function and changed my import command be "$($t).jqGrid( json );" instead of "$($t).jqGrid( gprm );"&#160;. Now I don&#39;t get an error but I get a thin grey line with no grid data. I&#39;m thinking I&#39;ll have to change up the export string and find a way to only import certain pieces of data. I could also be using the jqGridImport line incorrectly maybe someone has some better syntax I can try.&#160;</p>
]]></description>
        	        	<pubDate>Thu, 19 Aug 2010 23:13:44 +0300</pubDate>
        </item>
        <item>
        	<title>spock on Unable to load/import grid from JSON string gen by jqGridExport</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/unable-to-loadimport-grid-from-json-string-gen-by-jqgridexport#p19188</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/unable-to-loadimport-grid-from-json-string-gen-by-jqgridexport#p19188</guid>
        	        	<description><![CDATA[<p>I&#39;m using the following to export my current grid state:</p>
</p>
<p>$("#tableall").jqGrid(&#39;jqGridExport&#39;,{exptype:"jsonstring"});</p>
</p>
<p>If I print this to an alert or innerhtml div I see my current grid configuration listed in JSON form.</p>
</p>
<p>If I attempt to import this by doing the following ( these actions are tied to a button on my page ) :</p>
</p>
<p>test_json = $("#tableall").jqGrid(&#39;jqGridExport&#39;,{exptype:"jsonstring"});</p>
<p>$("#tableall").jqGrid(&#39;GridUnload&#39;);</p>
<p>$("#tableall").jqGrid(&#39;jqGridImport&#39;,{imptype:"jsonstring", impstring: test_json, jsonGrid:{ config:"grid",data: "data"} });</p>
</p>
<p>I get a "ReferenceError: Can&#39;t find variable: grid" error in the javascript debugging console. I&#39;m thinking the error is saying it can&#39;t find "grid", &#160;which is the root of my export in the json string. Everything looks right when I output the value of test_json . Do I need to change up my import line or possibly do something with the output of &#39;jqGridExport&#39; before I can import it using &#39;jqGridImport&#39;? I&#39;m using jqGrid-3.7.2 &#160;with jquery jquery-1.4.2 . Thank you for the help.&#160;</p>
]]></description>
        	        	<pubDate>Wed, 18 Aug 2010 08:46:18 +0300</pubDate>
        </item>
</channel>
</rss>