<?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: Row revert issue with checkboxes (inline editing)</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/row-revert-issue-with-checkboxes-inline-editing</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/row-revert-issue-with-checkboxes-inline-editing/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>rickroot on Row revert issue with checkboxes (inline editing)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/row-revert-issue-with-checkboxes-inline-editing#p8893</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/row-revert-issue-with-checkboxes-inline-editing#p8893</guid>
        	        	<description><![CDATA[<p>I figured out that my formatter was causing the problem... &#160;I was only formatting for 0 and 1 values, but apparently i needed to also deal with the possible values of the checkbox as well, which were "Yes:No"</p>
<p>So I changed my formatter to be like this (this is pseudocode, I don&#39;t have the exact formatter in front of me right now)</p>
<p>if (val == &#39;1&#39; &#124;&#124; val == &#39;Yes&#39; ) { return &#39;Yes&#39;; } else { return &#39;No&#39;; }</p>
<p>and now it works.</p>
]]></description>
        	        	<pubDate>Fri, 21 Aug 2009 05:20:17 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Row revert issue with checkboxes (inline editing)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/row-revert-issue-with-checkboxes-inline-editing#p8886</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/row-revert-issue-with-checkboxes-inline-editing#p8886</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>What do yesNoFormatter?</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 21 Aug 2009 03:51:06 +0300</pubDate>
        </item>
        <item>
        	<title>rickroot on Row revert issue with checkboxes (inline editing)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/row-revert-issue-with-checkboxes-inline-editing#p8844</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/row-revert-issue-with-checkboxes-inline-editing#p8844</guid>
        	        	<description><![CDATA[</p>
<p>So I&#39;m using this jquerygrid plugin () and it&#39;s working pretty well. I&#39;m trying to use the inline edit feature to edit a couple fields in the row using checkboxes... the values in the DB are 1 and 0.</p>
</p>
<p>So in my colModel, I have this:</p>
</p>
<p><span> </span>{name:&#39;ISOWNER&#39;,index:&#39;ISOWNER&#39;, width:50, editable:true, edittype:"checkbox", editoptions: {value:"1:0"}},</p>
<p><span> </span>{name:&#39;SENDALERT&#39;,index:&#39;SENDALERT&#39;, width:50, editable:true, edittype:"checkbox", editoptions: {value:"1:0"}},</p>
</p>
<p>It works great. &#160;Most importantly, if I uncheck something, then go to another row, the original value of the checkbox is &#160;restored (because I didn&#39;t save). &#160;So if it was a 1, and I unchecked it, then went to another row, it would revert to a 1 - as it should.</p>
</p>
<p>But If &#160;I change it to this:</p>
</p>
<p><span> </span>{name:&#39;ISOWNER&#39;,index:&#39;ISOWNER&#39;, width:50, editable:true, formatter:yesNoFormatter, edittype:"checkbox", editoptions: {value:"Yes:No"}},</p>
<p><span> </span>{name:&#39;SENDALERT&#39;,index:&#39;SENDALERT&#39;, width:50, editable:true, formatter:yesNoFormatter, edittype:"checkbox", editoptions: {value:"Yes:No"}},</p>
</p>
<p>the checkboxes LOAD properly, but the restore of the row fails and the values are always reverted to "No"</p>
]]></description>
        	        	<pubDate>Thu, 20 Aug 2009 13:49:17 +0300</pubDate>
        </item>
</channel>
</rss>