<?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: jqGridExport+GridUnload+jqGridImport=no data</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jqgridexportgridunloadjqgridimportno-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/jqgridexportgridunloadjqgridimportno-data/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>beckdawg83 on jqGridExport+GridUnload+jqGridImport=no data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgridexportgridunloadjqgridimportno-data#p24651</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgridexportgridunloadjqgridimportno-data#p24651</guid>
        	        	<description><![CDATA[<p>I suspect you have a similar problem to what I do(see: <a href="http://www.trirand.com/blog/?page_id=393/discussion/is-export-bugged-or-am-i-just-doing-something-wrong/&#038;value=export&#038;type=1&#038;include=1&#038;search=1&#038;ret=all" rel="nofollow" target="_blank"><a href="http://www.trirand.com/blog/?p" rel="nofollow">http://www.trirand.com/blog/?p</a>.....38;ret=all</a>). Well first of all, I&#39;m not sure import works like you are trying to do. I tried to something similar. On page entry I wanted to check to see if the user had a saved configuration so I did an ajax call which returns the json of the grid config if there was one. I then tried to load data like you&#39;re doing but it didn&#39;t work for me at all.</p>
</p>
<p>To see if it&#39;s even running correctly for you what you can do is this</p>
<p>grid.jqGrid(&#39;GridUnload&#39;).jqGrid(&#39;jqGridImport&#39;,{imptype:"jsonstring", impstring:savedata,importComplete: function() {alert(&#39;something&#39;);}});</p>
<p>That importComplete runs when the grid loads. In my case it would never run without having the mtype and impurl in it. So, i just made a second call to my controller. After I fixed that I noticed some issues with export. I&#39;m not sure why but when I export my grid it gives way more stuff in the json than I supply and that causes the import to break. If I manually roll my own json file I was able to make it work. By that I mean do something like this</p>
</p>
<p>&#39;{"grid":{&#39; + <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#39;"url": "&#39; + $(&#39;#grid&#39;).getGridParam(&#39;url&#39;) + &#39;", &#39; +</p>
<p>...etc</p>
]]></description>
        	        	<pubDate>Fri, 16 Sep 2011 18:23:28 +0300</pubDate>
        </item>
        <item>
        	<title>kriboogh on jqGridExport+GridUnload+jqGridImport=no data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgridexportgridunloadjqgridimportno-data#p24387</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgridexportgridunloadjqgridimportno-data#p24387</guid>
        	        	<description><![CDATA[<p>I&#39;v been looking all over the place but can&#39;t find any solution. I want to store the grid settings (column order, filters, sorting,...) in a database as &#39;views&#39;. So the user can click a button and the saved views are listed. If he selects one, the grid should change to the settings stored in that &#39;view&#39;. I wrote the extension to the grid, and storing them using the export function works.</p>
<p>However importing the exported grid fails, as my data is lost.</p>
<p>I tried this simple piece of code below and i would expect the grid would remain the same, however i am left with a completly blank table tag.</p>
<p>var savedata=grid.jqGrid(&#39;jqGridExport&#39;,{exptype:"jsonstring"});</p>
<p>grid.jqGrid(&#39;GridUnload&#39;).jqGrid(&#39;jqGridImport&#39;,{imptype:"jsonstring", impstring:savedata});</p>
</p>
<p>I&#39;m using 4.1.2. My grid loads its data from a json script, so no local data. I would expect the gridimport &#160;to trigger a reload, but this doesn&#39;t happen. I tried calling all sorts of functions (clearGridData, setting the this.grid to null,....) , but none helps. looked at jqgridstate, but that saves the state in a cookie or jstorage, i want to save it in my own database table.</p>
</p>
<p><img class="spSmiley" style="margin:0" title="Frown" src="/blog/wp-content/forum-smileys/sf-frown.gif" alt="Frown" /></p>
]]></description>
        	        	<pubDate>Wed, 24 Aug 2011 00:15:26 +0300</pubDate>
        </item>
</channel>
</rss>