<?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: select box as grid trigger</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/select-box-as-grid-trigger</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/select-box-as-grid-trigger/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>violinssoundcool on select box as grid trigger</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/select-box-as-grid-trigger#p5785</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/select-box-as-grid-trigger#p5785</guid>
        	        	<description><![CDATA[<p>That worked great!&#160; Thanks Nathan.&#160; I really should have thought of that, but it&#39;s a good thing you did.</p>
]]></description>
        	        	<pubDate>Thu, 02 Apr 2009 12:22:38 +0300</pubDate>
        </item>
        <item>
        	<title>Nathan on select box as grid trigger</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/select-box-as-grid-trigger#p5752</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/select-box-as-grid-trigger#p5752</guid>
        	        	<description><![CDATA[<p>Hi</p>
<p>This sounds similar to a design I am working with. Essentially a user is selecting a project and a date. Using this a sequence of grids is loaded to display information such as expenses, vehicles etc.</p>
<p>The trick I did:</p>
<p>1.&#160; You have to chang the edit and url parameters:</p>
<p>ie:</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; pdate = document.getElementById("projectdate").value;<br />&#160;&#160;&#160; &#160;&#160;&#160; PID = document.getElementById("projectid").value</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; eurl = "./actions/ProjectHoursUpdate.php?pdate="+pdate+"&#38;pid="+PID;<br />&#160;&#160;&#160; &#160;&#160;&#160; surl = "./actions/ProjectHourInfo.php?pdate="+pdate+"&#38;pid="+PID; <br />&#160;&#160;&#160; &#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(&#39;#hours&#39;).setGridParam({editurl:eurl});<br />&#160;&#160;&#160; &#160;&#160;&#160; jQuery(&#39;#hours&#39;).setGridParam({url:surl});</p>
<p>I created a function that was is called in the onChange event of my date box.</p>
<p>2.&#160; Create a grid reload function</p>
<p>ie.</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; jQuery(&#39;#hours&#39;).trigger("reloadGrid");</p>
<p>Call this function immediately after you have set your edit/url parameters.</p>
<p>If you have any questions just send me a message.&#160; Hope that helps!</p>
<p>Nathan</p>
]]></description>
        	        	<pubDate>Wed, 01 Apr 2009 21:31:05 +0300</pubDate>
        </item>
        <item>
        	<title>violinssoundcool on select box as grid trigger</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/select-box-as-grid-trigger#p5750</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/select-box-as-grid-trigger#p5750</guid>
        	        	<description><![CDATA[<p>I&#39;ve been searching through the docs, but I can&#39;t find how to populate the JQGrid based on the option chosen in a select box.&#160; In other words, run the program when the select box is changed and pass the selected option in the program call.&#160; I could have overlooked it, though.&#160; Any ideas?</p>
]]></description>
        	        	<pubDate>Wed, 01 Apr 2009 15:33:05 +0300</pubDate>
        </item>
</channel>
</rss>