<?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: unload then reload grid with new param and db table source?</title>
	<link>http://www.trirand.com/blog/?page_id=393/discussion/unload-then-reload-grid-with-new-param-and-db-table-source</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/discussion/unload-then-reload-grid-with-new-param-and-db-table-source/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>d3vilr3d on unload then reload grid with new param and db table source?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/unload-then-reload-grid-with-new-param-and-db-table-source#p19392</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/unload-then-reload-grid-with-new-param-and-db-table-source#p19392</guid>
        	        	<description><![CDATA[<p>Hi Guys,</p>
</p>
<p>I&#39;m trying to load different db table based on selection.&#160; So far I have:</p>
</p>
<p>$("#table").change(function(){<br />&#160;&#160;&#160; var tbll = $(this).val();<br />&#160;&#160;&#160; if(tbl) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#grid&#39;).setGridParam({url: &#39;grid.php?table=&#39;+tbl});<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; $(&#39;#grid&#39;).trigger(&#39;reloadGrid&#39;);<br />&#160;&#160;&#160; }<br />});</p>
</p>
<p>This reloads the data but doesn&#39;t get new header/column from the new table column.&#160; I read elsewhere that I should use GridUnload.&#160; What is the method to rebuild the grid after a GridUnload?&#160; I can&#39;t rebuild the grid once GridUnload is triggered.</p>
</p>
<p>Thank for any input in advance 🙂</p>
<p>William</p>
]]></description>
        	        	<pubDate>Fri, 27 Aug 2010 21:32:22 +0300</pubDate>
        </item>
</channel>
</rss>