<?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: Radio Buttons Not Populated When Calling Grid To Form</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/radio-buttons-not-populated-when-calling-grid-to-form</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/radio-buttons-not-populated-when-calling-grid-to-form/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>robin on Radio Buttons Not Populated When Calling Grid To Form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/radio-buttons-not-populated-when-calling-grid-to-form#p8286</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/radio-buttons-not-populated-when-calling-grid-to-form#p8286</guid>
        	        	<description><![CDATA[<p>This same bug still exists in 3.4.4 for checkboxes.&#160; The solutions simply needs to be expanded to handle checkboxes.</p>
<p>regards,Robin</p>
]]></description>
        	        	<pubDate>Wed, 05 Aug 2009 17:55:16 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Radio Buttons Not Populated When Calling Grid To Form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/radio-buttons-not-populated-when-calling-grid-to-form#p2046</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/radio-buttons-not-populated-when-calling-grid-to-form#p2046</guid>
        	        	<description><![CDATA[<p>Matthew,</p>
<p>Thank you very much for this. I will include the fix in the next release.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 16 Sep 2008 02:39:23 +0300</pubDate>
        </item>
        <item>
        	<title>thatisscary on Radio Buttons Not Populated When Calling Grid To Form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/radio-buttons-not-populated-when-calling-grid-to-form#p2044</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/radio-buttons-not-populated-when-calling-grid-to-form#p2044</guid>
        	        	<description><![CDATA[<p>Tony:</p>
<p>Another bug with code.</p>
<p>When Calling grid tof orm with radio buttons on the page, the radio</p>
<p>buttons are not set.</p>
</p>
<p>Here is the modified GridToForm code which fixes the problem (My amendations are <strong>in bold. </strong></p>
<p>GridToForm : function( rowid, formid ) {<br />&#160;&#160;&#160; &#160;&#160;&#160; return this.each(function()&#160;&#160; <br />&#160;&#160;&#160; &#160;&#160;&#160; {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var $t = this;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if (!$t.grid) return;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var rowdata = $($t).getRowData(rowid);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if (rowdata) <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; for(var i in rowdata) <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;<strong>&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160; if ( $("[name="+i+"]",formid).is("input:radio") )<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("[name="+i+"]",formid).each( function()<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if( $(this).val() == rowdata[i] )<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(this).attr("checked","checked");<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; else<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(this).attr("checked","");<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</strong><br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160; else<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; // this is very slow on big table and form.<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $("[name="+i+"]",formid).val(rowdata[i]);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; });<br />&#160;&#160;&#160; },</p>
<p>Hope this helps.&#160;</p>
</p>
<p>Wonderful code, by the way.&#160;</p>
</p>
<p>Matthew</p></p>
]]></description>
        	        	<pubDate>Mon, 15 Sep 2008 15:23:08 +0300</pubDate>
        </item>
</channel>
</rss>