<?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: Reload after setGridParam() does not re-draw column titles</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/reload-after-setgridparam-does-not-re-draw-column-titles</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/bugs/reload-after-setgridparam-does-not-re-draw-column-titles/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Reload after setGridParam() does not re-draw column titles</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/reload-after-setgridparam-does-not-re-draw-column-titles#p9814</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/reload-after-setgridparam-does-not-re-draw-column-titles#p9814</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I think no.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 18 Sep 2009 02:28:14 +0300</pubDate>
        </item>
        <item>
        	<title>Matt P on Reload after setGridParam() does not re-draw column titles</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/reload-after-setgridparam-does-not-re-draw-column-titles#p9757</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/reload-after-setgridparam-does-not-re-draw-column-titles#p9757</guid>
        	        	<description><![CDATA[<p>OK, I&#39;ve finally worked it out - I think. In order to dynamically load a previously saved layout for a grid, the following conditions need to be met:</p>
<ol>
<li>The saved layout (saved after using the JSON.stringify(myjqGridObject.getGridParam()) method) must be saved from a grid which did *not* use a jQuery object to specify the "pager" option when it was created.</li>
<li>The existing grid (which you are wanting to redraw with the saved layout) needs to be first cleared by using the GridUnload() method.</li>
<li>A new grid needs to be created on the same HTML element as the previous grid, using the saved layout from step 1 as the argument. eg $(&#39;#myGrid&#39;).jqGrid(JSON.parse(savedParamsString));</li>
</ol>
<div>Let me know if I have missed anything.</div>
<div></div>
<div>Cheers,</div>
<div>Matt.</div>
]]></description>
        	        	<pubDate>Tue, 15 Sep 2009 18:10:52 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Reload after setGridParam() does not re-draw column titles</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/reload-after-setgridparam-does-not-re-draw-column-titles#p9430</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/reload-after-setgridparam-does-not-re-draw-column-titles#p9430</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>You can not do this - see form post on this</p>
<p>5. Use GridUnload method to clear the grid and its parameters.</p>
<p>6. set jqGrid with the saved parametrs. (you should not use reload in this case)</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 08 Sep 2009 07:30:29 +0300</pubDate>
        </item>
        <item>
        	<title>Matt P on Reload after setGridParam() does not re-draw column titles</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/reload-after-setgridparam-does-not-re-draw-column-titles#p9419</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/reload-after-setgridparam-does-not-re-draw-column-titles#p9419</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>jqGrid is a fantastic product. Keep up the good work! <img class="spSmiley" style="margin:0" title="Laugh" src="http://www.trirand.com/blog/wp-content/forum-smileys/sf-laugh.gif" alt="Laugh" /></p>
</p>
<p>If I use setGridParam() to set jqGrid params (saved in cookie for example) which includes colModel params of &#39;hidden = true&#39; for some columns, then trigger a reload so the param changes are visible, the column titles do not get refreshed which means they remain visible even though the data for that column has been hidden.</p>
<p>To reproduce:</p>
<ol>
<li>Open fresh jqGrid</li>
<li>Use the Show/Hide Columns widget to hide some columns</li>
<li>Save the params somewhere using getGridParams() function</li>
<li>Do a browser refresh to get a fresh jqGrid which has all columns visible</li>
<li>Use the setGridParams() function with the data saved in step 3 as the argument to set the grid parameters</li>
<li>Trigger a reload of the jqGrid</li>
</ol>
<p>Also, is there a function to redraw the grid without re-loading the data?</p>
</p>
<p>Cheers,</p>
<p>Matt.</p>
]]></description>
        	        	<pubDate>Mon, 07 Sep 2009 20:26:58 +0300</pubDate>
        </item>
</channel>
</rss>