<?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: Redisplaying saved data grid</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/redisplaying-saved-data-grid</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/redisplaying-saved-data-grid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Redisplaying saved data grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/redisplaying-saved-data-grid#p3373</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/redisplaying-saved-data-grid#p3373</guid>
        	        	<description><![CDATA[<p>Open the file that contain JSON.stringify function. Usuallly its name is</p>
<p>json.js. Just find stringify function and at end of this function add these</p>
<p>lines.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 01 Dec 2008 03:22:00 +0200</pubDate>
        </item>
        <item>
        	<title>Chris N on Redisplaying saved data grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/redisplaying-saved-data-grid#p3365</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/redisplaying-saved-data-grid#p3365</guid>
        	        	<description><![CDATA[<p>Can you guys show me or tell me where you got your JSON javascript file?</p>
]]></description>
        	        	<pubDate>Sun, 30 Nov 2008 20:32:30 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Redisplaying saved data grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/redisplaying-saved-data-grid#p3338</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/redisplaying-saved-data-grid#p3338</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Since I have successed with this conversion - the problem is that</p>
<p>JSON.stringify does not support type function when convert to string.</p>
<p>This caouses not correct exporting of the events (functions). To work this</p>
<p>open the file that contain JSON.stringify method and at the end add</p>
<p>the following:</p>
<p>...</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; case &#39;boolean&#39;:<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return String(arg);</p>
<p>// Adding</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; case &#39;function&#39; :<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; return arg.toString();</p>
<p>// end of add</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; default:<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return &#39;null&#39;;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />.....</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 28 Nov 2008 02:24:53 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Redisplaying saved data grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/redisplaying-saved-data-grid#p3281</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/redisplaying-saved-data-grid#p3281</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>What is the error, that you recieve? With setGridParam you can</p>
<p>set anything possible including onSelectRow. I have successifully</p>
<p>implement in the development version of jqGrid the stringify and for</p>
<p>now it works fine. I suppose that you make eval of the string, before</p>
<p>passing it to jqGrid.</p>
<p>If possible before passing this parameters to the grid - check them to</p>
<p>see what you have. Also check what you have as string after stringify.</p>
</p>
<p>Regards</p>
<p>Tony</p></p>
]]></description>
        	        	<pubDate>Wed, 26 Nov 2008 01:36:50 +0200</pubDate>
        </item>
        <item>
        	<title>Chris N on Redisplaying saved data grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/redisplaying-saved-data-grid#p3269</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/redisplaying-saved-data-grid#p3269</guid>
        	        	<description><![CDATA[<p>I have gone through the steps of saving a datagrid to the server once a user changes the columns they want displayed, but what I have found is that when I use</p>
<p>var gridInfo = JSON.stringify($("#list").getGridParam());</p>
<p>the onSelectRow: paramater is not returned, which is a function that uses the id of the row to display some information elsewhere on the page. So what I&#39;m now trying to do is just see if I can add the onSelectRow through using setGridParam after the grid has been generated. But this doesnt seem to be working. Here is what I have right now. The $data_grid_params is either build from the default values I have predefined, or pulled from the server if the user has saved them previously.</p>
<p>jQuery("list").jqGrid($data_grid_params).navGrid(&#39;#pager&#39;,{edit:false,add:false,del:false,search:false});<br />&#160;&#160;&#160; <br />&#160;&#160;&#160; jQuery("list").setGridParam({onSelectRow: function(id){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; if(id &#38;&#38; id!==lastSel){ <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ($(&#39;#job_data&#39;).is(":hidden")) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#job_data&#39;).slideDown("slow");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; lastSel=id; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; loadJobListCalendar(id);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160; }});</p>
<p>jQuery("#change_columns").click(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#list").setColumns({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; left:50,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; top:50,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; height:495&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; <br />&#160;&#160;&#160; &#160;&#160;&#160; });<br />&#160;&#160;&#160; });<br />&#160;&#160;&#160; <br />&#160;&#160;&#160; jQuery("#save_grid").click(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(&#39;#list&#39;).setSelection(&#39;1&#39;);<br />&#160;&#160;&#160; &#160;&#160;&#160; var gridInfo = JSON.stringify($("#list").getGridParam());<br />&#160;&#160;&#160; &#160;&#160;&#160; saveFilter(gridInfo);<br />&#160;&#160;&#160; });</p>
</p>
<p>Any guidance here would be greatly appreciated.</p>
]]></description>
        	        	<pubDate>Tue, 25 Nov 2008 14:16:34 +0200</pubDate>
        </item>
</channel>
</rss>