<?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: Can't click on checkbox in cell edit mode</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/cant-click-on-checkbox-in-cell-edit-mode</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/cant-click-on-checkbox-in-cell-edit-mode/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>giorgio79 on Can't click on checkbox in cell edit mode</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/cant-click-on-checkbox-in-cell-edit-mode#p21734</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/cant-click-on-checkbox-in-cell-edit-mode#p21734</guid>
        	        	<description><![CDATA[<p>Thanks for this.</p>
<p>There is a typo in boolformatter, here is corrected</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2857' value='Select Code' data-codeid='sfcode2857' /></p>
<div class='sfcode' id='sfcode2857'>&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; function boolformatter(cellValue, options, rowObject)<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;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;cellValue = cellValue + &#39;&#39;;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;cellValue = cellValue.toLowerCase();&#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;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var checked = cellValue.search(/(false&#124;0&#124;no&#124;off&#124;n)/i) &#60; 0 ? &#39; checked=&#34;checked&#34;&#39;: &#39;&#39;;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var inputControl = &#39;&#60;input id=&#34;&#39;+ options.rowId + options.colModel.name +&#39;&#34; class=&#34;view&#34; type=&#34;checkbox&#34; &#39; + checked + &#39; value=&#34;&#39; + cellValue + &#39;&#34; onclick=&#34;MakeCellEditable(&#39;+options.rowId+&#39;,&#34;&#39;+options.colModel.name+&#39;&#34;)&#34; /&#62;&#39;;<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; &#160;&#160;&#160; &#160;&#160;&#160; &#160;return inputControl;&#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}</div>
</p>
<p>I have one issue though: In display, it shows as 0 or 1 instead of a checkbox. Only If I click on it, I do get the checkbox. Any tips? Here is how I am using it:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7997' value='Select Code' data-codeid='sfcode7997' /></p>
<div class='sfcode' id='sfcode7997'>&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; {name:&#39;selected&#39;,index:&#39;selected&#39;,width:90,editable:true, edittype:&#39;checkbox&#39;, editoptions: { value:&#34;1:0&#34;},&#160; formatter: &#34;boolformatter&#34;, formatoptions: {disabled : false},sorttype:&#34;text&#34;,searchoptions: { sopt: [&#39;eq&#39;], value:&#34;:All;1:Yes;0:No&#34; }, stype: &#39;select&#39;,sortable:true},</div>
]]></description>
        	        	<pubDate>Mon, 17 Jan 2011 12:20:34 +0200</pubDate>
        </item>
        <item>
        	<title>glittle on Can't click on checkbox in cell edit mode</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/cant-click-on-checkbox-in-cell-edit-mode#p15989</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/cant-click-on-checkbox-in-cell-edit-mode#p15989</guid>
        	        	<description><![CDATA[<p>Thanks brecht</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">/blog/?page_id=393/bugs/cant-click-on-checkbox-in-cell-edit-mode/#p15980</div>
<p>, this looks promising and I&#39;ll have to try it...</p>
]]></description>
        	        	<pubDate>Fri, 26 Mar 2010 18:59:55 +0200</pubDate>
        </item>
        <item>
        	<title>brecht on Can't click on checkbox in cell edit mode</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/cant-click-on-checkbox-in-cell-edit-mode#p15980</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/cant-click-on-checkbox-in-cell-edit-mode#p15980</guid>
        	        	<description><![CDATA[<p>Reported this as a bug some time ago: <a href="http://www.trirand.com/blog/?page_id=393/bugs/editable-checkboxes/&#038;value=2508&#038;type=8&#038;include=0&#038;search=1&#038;ret=all" rel="nofollow" target="_blank"><a href="http://www.trirand.com/blog/?p" rel="nofollow">http://www.trirand.com/blog/?p</a>.....38;ret=all</a></p>
</p>
<p>Solved it using a custom formatter:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1002' value='Select Code' data-codeid='sfcode1002' /></p>
<div class='sfcode' id='sfcode1002'>function boolformatter(cellValue, options, rowObject)<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; cellValue = cellValue + &#39;&#39;;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; cellValue = cellValue.toLowerCase();&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var checked = cellValue.search(/(false&#124;0&#124;no&#124;off&#124;n)/i) &#60; 0 ? &#39; checked=&#34;checked&#34;&#39;: &#39;&#39;;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var inputControl = &#39;&#60;input id=&#34;&#39;+ options.rowId + options.colModel.name +&#39;&#34; class=&#34;view&#34; type=&#34;checkbox&#34; &#39; + checked + &#39; value=&#34;&#39; + cellValue + &#39;&#34; onclick=&#34;MakeCellEditable(&#39;+options.rowId+&#39;,&#39;&#39;+options.colModel.name+&#39;&#39;)&#34; /&#62;&#39;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return inputControl;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</div>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit425' value='Select Code' data-codeid='sfcode425' /></p>
<div class='sfcode' id='sfcode425'>&#160;function MakeCellEditable(rowId,colName)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var rowids =&#160; $(&#39;#grid&#39;).getDataIDs();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var colModel =&#160; $(&#39;#grid&#39;).getGridParam().colModel;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; for (var i = 0; i &#60; rowids.length; i++) <br />&#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; if(rowId ==&#160; rowids[i])<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;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; for (var j = 0; j &#60; colModel.length; j++) <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; if (colModel[j].name == colName) <br />&#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; // Put cell in editmode. <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; // If the edit (third param) is set to false the cell is just selected and not edited.<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; // If set to true the cell is selected and edited.<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; jQuery(&#34;#grid&#34;).editCell(i,j,true);<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; // Let the grid know that the cell has been changed without having to push enter button or click another cell.<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; jQuery(&#34;#grid&#34;).saveCell(i,j);<br />&#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; }<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;<br />&#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; }</p>
</div>
]]></description>
        	        	<pubDate>Fri, 26 Mar 2010 12:38:01 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Can't click on checkbox in cell edit mode</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/cant-click-on-checkbox-in-cell-edit-mode#p15961</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/cant-click-on-checkbox-in-cell-edit-mode#p15961</guid>
        	        	<description><![CDATA[<p>Hello again,</p>
<p>Instead of the previous post I think that this can be achieved using beforeSelectRow event.</p>
<p>The idea is to determine that this checkbox is clicked and apply then editCell manually to this grid cell.</p>
<p>Will see how to help you later.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 25 Mar 2010 16:40:43 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Can't click on checkbox in cell edit mode</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/cant-click-on-checkbox-in-cell-edit-mode#p15960</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/cant-click-on-checkbox-in-cell-edit-mode#p15960</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I see where is the reason for this. Yes - it will only work this way. If we "fix" this we will go to other big problems.</p>
<p>Sorry.</p>
<p>Regards</p>
<p>Tony</p></p>
]]></description>
        	        	<pubDate>Thu, 25 Mar 2010 16:32:05 +0200</pubDate>
        </item>
        <item>
        	<title>glittle on Can't click on checkbox in cell edit mode</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/cant-click-on-checkbox-in-cell-edit-mode#p15886</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/cant-click-on-checkbox-in-cell-edit-mode#p15886</guid>
        	        	<description><![CDATA[<p>I&#39;m using Cell Edit mode...</p>
<p>I have a column with: &#160;edittype:checkbox, formatter:checkbox</p>
</p>
<p>The check box shows up okay. &#160;Since I&#39;m in "cell edit" mode, I must click the cell to be able to edit it. I should be able to click anywhere in the cell to start editing.</p>
<p>However, I can not click where the check box is showing. &#160;I can only click in the space beside the check box.</p>
</p>
<p>In the documentation and samples, there are none that have a checkbox and use cell edit mode, so this problem is not seen in the samples.</p>
</p>
<p>Does that make sense?</p>
]]></description>
        	        	<pubDate>Mon, 22 Mar 2010 13:16:55 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Can't click on checkbox in cell edit mode</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/cant-click-on-checkbox-in-cell-edit-mode#p15865</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/cant-click-on-checkbox-in-cell-edit-mode#p15865</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Do not understand. You have already setup a checkbox using formatter and try to edit a cell or ...</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 22 Mar 2010 11:11:35 +0200</pubDate>
        </item>
        <item>
        	<title>glittle on Can't click on checkbox in cell edit mode</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/cant-click-on-checkbox-in-cell-edit-mode#p15821</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/cant-click-on-checkbox-in-cell-edit-mode#p15821</guid>
        	        	<description><![CDATA[<div id="post14924">
<p>I have a grid setup in cell edit mode.</p>
<p>Normally, I can click on a cell, and the cell turns to edit mode.</p>
<p>However, I cannot do this if the cell has only a checkbox. I have  to click beside it.</p>
<p>Is there any way to make it work so that I can click on the checkbox and have it become editable?</p>
<p>Glen</p>
</div>
]]></description>
        	        	<pubDate>Thu, 18 Mar 2010 19:10:23 +0200</pubDate>
        </item>
</channel>
</rss>