<?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: Edit Form - relational select menus</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/edit-form-relational-select-menus</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/edit-form-relational-select-menus/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>michaelg on Edit Form - relational select menus</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/edit-form-relational-select-menus#p18650</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/edit-form-relational-select-menus#p18650</guid>
        	        	<description><![CDATA[<p>Yep I think your right, if the number of OPTIONs is huge, then it would be best to load them via AJAX when needed.</p>
<p>It would be even better if you prevent loading the OPTIONs a second time if they&#39;ve already been loaded.</p>
<p>Perhaps, it would be easiest to ...</p>
<p>a) Have a seperate SELECT for each of the different types, and hide/unhide the whole select depending on what is selected in the first SELECT</p>
<p>b) When your un-hiding one of these SELECTs, you could check if it has already been loaded,and if not then load it up via AJAX</p>
]]></description>
        	        	<pubDate>Sun, 18 Jul 2010 01:25:29 +0300</pubDate>
        </item>
        <item>
        	<title>gyrofly on Edit Form - relational select menus</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/edit-form-relational-select-menus#p18642</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/edit-form-relational-select-menus#p18642</guid>
        	        	<description><![CDATA[<p>The challenge with that approach is the sheer number of options. We have literally thousands of potential values for that second SELECT. If we could pull those in ajax in some fashion with an onChange on the first SELECT that would be ideal.</p>
</p>
<p>Any ideas how we would do that?</p>
]]></description>
        	        	<pubDate>Fri, 16 Jul 2010 19:02:55 +0300</pubDate>
        </item>
        <item>
        	<title>michaelg on Edit Form - relational select menus</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/edit-form-relational-select-menus#p18629</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/edit-form-relational-select-menus#p18629</guid>
        	        	<description><![CDATA[<p>If i were trying to solve this problem i would ...</p>
<p>1) populate the second SELECT with all possible values (eg. all hair colours, all shirt sizes, etc.)</p>
<p>2) attach a function call to the onchange event of the first SELECT</p>
<p>3) in this function, i would loop through all OPTION&#39;s in the second SELECT, and make them either hidden or visible, depending on the value of the first select</p>
</p>
<p>Maybe theres a better way, just an idea 🙂 I hope it helps!</p>
</p>
<p>Cheers,</p>
<p>Michael</p>
]]></description>
        	        	<pubDate>Fri, 16 Jul 2010 03:01:38 +0300</pubDate>
        </item>
        <item>
        	<title>gyrofly on Edit Form - relational select menus</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/edit-form-relational-select-menus#p18625</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/edit-form-relational-select-menus#p18625</guid>
        	        	<description><![CDATA[<p>Inside our Edit Form, we have one field (edittype=select) that must dynamically update options available based on the realtime selection value of another field (edittype=select).</p>
</p>
<p>For example if "Hair Color" was selected in the first select menu, the values in the second menu would auto-populate with options of "Brown", "Blond" and "Brunette". If "Fruit" was selected in the first menu, the second menu would re-populate with options "Orange", "Apple", "Pear".</p>
</p>
<p>How would we go about this?</p>
]]></description>
        	        	<pubDate>Fri, 16 Jul 2010 00:51:16 +0300</pubDate>
        </item>
</channel>
</rss>