<?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: Grid to Form - checkbox</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/grid-to-form-checkbox</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/grid-to-form-checkbox/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Grid to Form - checkbox</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-to-form-checkbox#p12585</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-to-form-checkbox#p12585</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Which version do you use?</p>
<p>Also in you form maybe you should define :</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6271' value='Select Code' data-codeid='sfcode6271' /></p>
<div class='sfcode' id='sfcode6271'>
<p>&#60;input type=&#39;checkbox&#39; value=&#39;Yes&#39; offval=&#39;No&#39; /&#62;</p>
</p>
</div>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 30 Nov 2009 13:40:15 +0200</pubDate>
        </item>
        <item>
        	<title>pins83 on Grid to Form - checkbox</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-to-form-checkbox#p12570</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-to-form-checkbox#p12570</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>In my jqGrid, I don&#39;t use grid Forms, but clicking on Add or Edit, is opened my custom form.</p>
<p>In edit case, I populate the form using GridToForm, but I have problem with the check boxes:</p>
</p>
<p>If from the server arrives 1, into the cell I have to display "yes"; "no" if 0 (an i think it&#39;s simple using setCell).</p>
<p>But when I populate the form I must add "checked" if the value is 1 and not "yes".</p>
<p>How can I remember the original data comes from the server?</p>
</p>
<p>In other case, arrives from the server a 7-length string , for example 1000011 , and the value of cell is changed to "M,-,-,-,-,S,S" (for the weekly frequency); again i have to check only 3 check boxes using 1000011, and not " M,-,-,-,-,S,S".</p>
</p>
<p>This because "yes", "no", " M,-,-,-,-,S,S" can be traslated so i must to consider 1, 0 and 1000011.</p>
]]></description>
        	        	<pubDate>Mon, 30 Nov 2009 12:09:29 +0200</pubDate>
        </item>
</channel>
</rss>