<?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: Cell Editing checkbox problem</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/cell-editing-checkbox-problem</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/cell-editing-checkbox-problem/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Rick.Beery on Cell Editing checkbox problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/cell-editing-checkbox-problem#p5748</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/cell-editing-checkbox-problem#p5748</guid>
        	        	<description><![CDATA[<p>FYI, I have had to apply the same fix for both 3.4.2 and 3.4.3 to get the checkbox to work.</p>
]]></description>
        	        	<pubDate>Wed, 01 Apr 2009 13:35:42 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Cell Editing checkbox problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/cell-editing-checkbox-problem#p4766</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/cell-editing-checkbox-problem#p4766</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>There is a known bug when a checkbox is used in all editing modules. I will publish second release of 3.4 soon.</p>
<p>Thank you</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 20 Feb 2009 02:00:52 +0200</pubDate>
        </item>
        <item>
        	<title>Rick.Beery on Cell Editing checkbox problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/cell-editing-checkbox-problem#p4756</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/cell-editing-checkbox-problem#p4756</guid>
        	        	<description><![CDATA[<p>In my version I tried commenting out these lines</p>
<p>//&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; // if so check to see if the content is changed<br />//&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var vl = $("td:eq("+$t.p.savedRow[0].ic+")&#62;#"+$t.p.savedRow[0].id+"_"+$t.p.savedRow[0].name,$t.rows[$t.p.savedRow[0].id]).val();<br />//&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if ($t.p.savedRow[0].v !=&#160; vl) {<br />//&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; // save it<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $($t).saveCell($t.p.savedRow[0].id,$t.p.savedRow[0].ic)<br />//&#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; // restore it<br />//&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $($t).restoreCell($t.p.savedRow[0].id,$t.p.savedRow[0].ic);<br />//&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }</p>
<p>Leaving only the saveCell() line to execute and thus letting saveCell() make the decision whether the value has changed. At least in my small case it works. Don&#39;t know if will break in other scenarios.</p>
]]></description>
        	        	<pubDate>Thu, 19 Feb 2009 15:12:27 +0200</pubDate>
        </item>
        <item>
        	<title>Rick.Beery on Cell Editing checkbox problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/cell-editing-checkbox-problem#p4755</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/cell-editing-checkbox-problem#p4755</guid>
        	        	<description><![CDATA[<p>I am trying to use cell editing with a check box. The issue is if the checkbox was previously checked "Yes" and I try to change it to No (unchecked), then use then mouse to click another cell the value does not get saved to "No" ie unchecked. If I use the tab key to move to the next cell everything works OK since saveCell() is called instead of editCell(). If I do the same operation and the value was previously unchecked then changing to checked and clicking on a different cell does save the checked (Yes) value successfully.</p>
<p>The difference is in editCell: the lines:</p>
<p>var vl = $("td:eq("+$t.p.savedRow[0].ic+")&#62;#"+$t.p.savedRow[0].id+"_"+$t.p.savedRow[0].name,$t.rows[$t.p.savedRow[0].id]).val();<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if ($t.p.savedRow[0].v !=&#160; vl) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; // save it<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $($t).saveCell($t.p.savedRow[0].id,$t.p.savedRow[0].ic)<br />&#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; // restore it<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $($t).restoreCell($t.p.savedRow[0].id,$t.p.savedRow[0].ic);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }</p>
<p>The value for vl for the &#39;yes&#39; -&#62; &#39;no&#39; case is &#39;yes&#39; instead of &#39;no&#39;. Thus when comparing it to the saveCell value, it is the same so it restores it.&#160; In the &#39;no&#39; -&#62; &#39;yes&#39; case the two values are different this saveCell is called.</p>
<p>I tried both the 3.4.1 and 3.3.2 version with same result. I am also using &#39;clientArray&#39;.</p>
]]></description>
        	        	<pubDate>Thu, 19 Feb 2009 14:57:30 +0200</pubDate>
        </item>
</channel>
</rss>