<?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: setGridParam problem?</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/setgridparam-problem</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/setgridparam-problem/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>rocketbob on setGridParam problem?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/setgridparam-problem#p6950</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/setgridparam-problem#p6950</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>Thanks for the help.&#160; After I had posted the message I discovered the unloadgrid method and resolved it exactly as you described.</p>
<p>Regards,</p>
<p>Bob</p></p>
]]></description>
        	        	<pubDate>Thu, 28 May 2009 09:26:47 +0300</pubDate>
        </item>
        <item>
        	<title>tony on setGridParam problem?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/setgridparam-problem#p6936</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/setgridparam-problem#p6936</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>jqGrid does not support dynamically loading configuration per request.</p>
<p>In order to do this you should first GridUnload and then recreate the grid.</p>
<p>With setGrid param this will not work</p>
<p>Suppose the grid is initially configured</p>
<p>$("#mybutton").click(function(){</p>
<p>$("#mygrid").GridUnload(); // destroy the grid saving the table and pager</p>
<p>// here code to load new jqGrid configuration - like colmodel, colnames and etc</p>
<p>var newjqgridoptions = .....</p>
<p>$("#mygrid").jqGrid(newjqgridoptions);</p>
<p>return false;</p>
<p>})</p>
<p>Hope this help</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 28 May 2009 03:32:46 +0300</pubDate>
        </item>
        <item>
        	<title>rocketbob on setGridParam problem?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/setgridparam-problem#p6927</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/setgridparam-problem#p6927</guid>
        	        	<description><![CDATA[<p>I&#39;m building a grid dynamically, as I don&#39;t know the colModels and colNames collections until runtime.&#160; I set those when creating the grid and and it works just fine.&#160; However, I have a select on the page where the user can set a different database query, thus requiring a refresh of the colNames and colModels collections, then reloading the grid.&#160; This isn&#39;t working, and I get a &#39;undefined&#39; is null or not an object on line 756 of grid.base.js (3.5 beta 2.)&#160; The colModel array apparently is not being updated when I call setGrid like this:</p>
<p>$.fn.RefreshMyDataGrid = function(gridData) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#MyDataGrid").setGridParam({</p>
<p>postData: { ObjectName: $(&#39;#selAvailableViews&#39;).val(), colNames: gridData.columnNames, colModel: gridData.columnModels }</p>
<div id=":14s" class="ii gt">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }).trigger("reloadGrid");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; };</div>
</p>
<p>gridData is an object containing the colNames and colModels arrays, and works fine when initially loading the grid.&#160; How can I refresh those properties and reload the grid if this doesn&#39;t work?</p>
<p>Regards,</p>
<p>Bob</p></p>
]]></description>
        	        	<pubDate>Wed, 27 May 2009 07:45:24 +0300</pubDate>
        </item>
</channel>
</rss>