<?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: make disabled checkbox of the 'checkbox' formatter clickable</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/make-disabled-checkbox-of-the-checkbox-formatter-clickable</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/feature-request/make-disabled-checkbox-of-the-checkbox-formatter-clickable/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on make disabled checkbox of the 'checkbox' formatter clickable</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/make-disabled-checkbox-of-the-checkbox-formatter-clickable#p29876</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/make-disabled-checkbox-of-the-checkbox-formatter-clickable#p29876</guid>
        	        	<description><![CDATA[<p><a href="https://github.com/OlegKi/jqGrid-plugins/blob/master/jQuery.jqGrid.checkboxFontAwesome4.js" target="_blank">jQuery.jqGrid.checkboxFontAwesome4.js</a>, described in&#160;<a href="http://stackoverflow.com/a/20165553/315935" target="_blank">the answer</a>, uses <a href="http://fortawesome.github.io/Font-Awesome/" target="_blank">Font Awesome</a>&#160;icons instead of <strong>&#60;input type="checkbox"&#62;</strong> used by <strong>formatter: "checkbox"</strong> or by <strong>formatter: "clickableCheckbox"</strong>. All the tests which I made before shows that <strong>formatter: "checkboxFontAwesome4"</strong> are rendered quickly by web browsers (inclusive IE8).</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Sat, 23 Nov 2013 21:12:13 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on make disabled checkbox of the 'checkbox' formatter clickable</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/make-disabled-checkbox-of-the-checkbox-formatter-clickable#p28648</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/make-disabled-checkbox-of-the-checkbox-formatter-clickable#p28648</guid>
        	        	<description><![CDATA[<p>I think that one need to change <strong>$.fmatter.isUndefined(cellValue)</strong> to <strong>cellValue === undefined</strong>. See <a href="https://github.com/OlegKi/jqGrid-plugins/commit/b14719b39a5e83e67d5b0705a4132127ecd2acea" target="_blank">the commit</a>. The corresponding demo is <a href="http://www.ok-soft-gmbh.com/jqGrid/Checkbox4_.htm" target="_blank">here</a>.</p>
<p>Regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Mon, 15 Apr 2013 08:52:09 +0300</pubDate>
        </item>
        <item>
        	<title>kobruleht on make disabled checkbox of the 'checkbox' formatter clickable</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/make-disabled-checkbox-of-the-checkbox-formatter-clickable#p28647</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/make-disabled-checkbox-of-the-checkbox-formatter-clickable#p28647</guid>
        	        	<description><![CDATA[<p>In 4.4.5 this formatter does not work anymore. True and False appears in column instead of checkmark. In inline edit checkbox appears but is always in unchecked state.</p>
<p>How to fix this ?</p>
<p>Posted also as comment in <a href="http://stackoverflow.com/questions/13920810/how-to-fix-javascript-exception-if-oleg-clickablecheckboxformatter-is-used-in-jq" rel="nofollow" target="_blank"><a href="http://stackoverflow.com/quest" rel="nofollow">http://stackoverflow.com/quest</a>.....used-in-jq</a></p>
]]></description>
        	        	<pubDate>Sun, 14 Apr 2013 18:02:07 +0300</pubDate>
        </item>
        <item>
        	<title>berus on make disabled checkbox of the 'checkbox' formatter clickable</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/make-disabled-checkbox-of-the-checkbox-formatter-clickable#p28296</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/make-disabled-checkbox-of-the-checkbox-formatter-clickable#p28296</guid>
        	        	<description><![CDATA[<p>Thanks to oleg for this ... 🙂</p>
]]></description>
        	        	<pubDate>Fri, 15 Feb 2013 19:17:18 +0200</pubDate>
        </item>
        <item>
        	<title>kobruleht on make disabled checkbox of the 'checkbox' formatter clickable</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/make-disabled-checkbox-of-the-checkbox-formatter-clickable#p27927</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/make-disabled-checkbox-of-the-checkbox-formatter-clickable#p27927</guid>
        	        	<description><![CDATA[<p>If single click inline editing is used ( beforeSelectRow event handler starts inline edit) then this code causes javascript error.</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6016' value='Select Code' data-codeid='sfcode6016' /></p>
<div class='sfcode' id='sfcode6016'>&#60;div title=&#34;&#39; + (options.colName &#124;&#124; options.colModel.label &#124;&#124; options.colModel.name) +</div>
</p>
<p>div is active , cell is this div, c in getCellIndex&#160;is undefined :</p>
<p><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"></span></span></p>
<p><input type='button' class='sfcodeselect' name='sfselectit5391' value='Select Code' data-codeid='sfcode5391' /></p>
<div class='sfcode' id='sfcode5391'><span style=&#34;&#34;&#34;&#34;&#34;font-family:&#34;&#34;&#34;&#34;><span style=&#34;&#34;&#34;&#34;&#34;font-family:&#34;&#34;&#34;&#34;>getCellIndex : function (cell) {<br />&#160;&#160;var c = $(cell);<br />&#160;&#160;if (c.is(&#39;tr&#39;)) { return -1; }<br />&#160;&#160;c = (!c.is(&#39;td&#39;) &#38;&#38; !c.is(&#39;th&#39;) ? c.closest(&#34;td,th&#34;) : c)[0];<br />&#160;&#160;if ($.browser.msie) { return $.inArray(c, c.parentNode.cells); }<br />&#160;&#160;return c.cellIndex;<br />&#160;},</span></span></div>
</p>
<p>and in IE exception occurs at line</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1979' value='Select Code' data-codeid='sfcode1979' /></p>
<div class='sfcode' id='sfcode1979'>
<p>$.inArray(c, c.parentNode.cells)</p>
</div>
<p>How to fix this?</p>
</p>
<p><a href="http://stackoverflow.com/questions/13920810/how-to-fix-javascript-exception-if-oleg-clickablecheckboxformatter-is-used-in-jq" rel="nofollow" target="_blank">http://stackoverflow.com/questions/13920810/how-to-fix-javascript-exception-if-oleg-clickablecheckboxformatter-is-used-in-jq</a></p>
<p>Posted also in</p>
]]></description>
        	        	<pubDate>Mon, 17 Dec 2012 21:13:11 +0200</pubDate>
        </item>
        <item>
        	<title>kobruleht on make disabled checkbox of the 'checkbox' formatter clickable</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/make-disabled-checkbox-of-the-checkbox-formatter-clickable#p25766</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/make-disabled-checkbox-of-the-checkbox-formatter-clickable#p25766</guid>
        	        	<description><![CDATA[<p>Oleg,</p>
</p>
<p>Thank you. Very good improvement.</p></p>
]]></description>
        	        	<pubDate>Mon, 23 Jan 2012 21:15:34 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on make disabled checkbox of the 'checkbox' formatter clickable</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/make-disabled-checkbox-of-the-checkbox-formatter-clickable#p25668</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/make-disabled-checkbox-of-the-checkbox-formatter-clickable#p25668</guid>
        	        	<description><![CDATA[<p>Hallo Tony</p>
<p>I answerd recently the question in the "Help" part of the forum (see <a href="/blog/?page_id=393/help/problem-with-checkbox-cell-in-ie/#p25537" target="_blank">here</a>) and suggested how to implement the checkbox formatter so that one will be able to select the row by clicking on the <em>disabled</em> checkbox.</p>
<p>The idea is to place additional full transparent div (<strong>opacity:0</strong>) over the cell having disabled&#160;checkbox. Probably you can find more elegant implementation, but at least this one work very good in all web browsers where I tested.</p>
<p>My suggestion is either to modify the standard &#39;checkbox&#39; formatter to make it clickable or introduce one more predefined formatter like the &#39;clickableCheckbox&#39; which code is below:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit736' value='Select Code' data-codeid='sfcode736' /></p>
<div class='sfcode' id='sfcode736'>$.extend($.fn.fmatter, {<br />&#160; &#160; clickableCheckbox: function (cellValue, options) {<br />&#160; &#160; &#160; &#160; var op = $.extend({}, $.jgrid.formatter.checkbox, options.colModel.formatoptions),<br />&#160; &#160; &#160; &#160; &#160; &#160; ds = op.disabled === true ? &#39;disabled=&#34;disabled&#34;&#39; : &#39;&#39;;<br />&#160; &#160; &#160; &#160; if ($.fmatter.isEmpty(cellValue) &#124;&#124; $.fmatter.isUndefined(cellValue)) {<br />&#160; &#160; &#160; &#160; &#160; &#160; cellValue = $.fn.fmatter.defaultFormat(cellValue, op);<br />&#160; &#160; &#160; &#160; }<br />&#160; &#160; &#160; &#160; cellValue = String(cellValue).toLowerCase();<br />&#160; &#160; &#160; &#160; return &#39;&#60;div style=&#34;position:relative&#34;&#62;&#60;input type=&#34;checkbox&#34;&#39; +<br />&#160; &#160; &#160; &#160; &#160; &#160; (cellValue.search(/(false&#124;0&#124;no&#124;off)/i) &#60; 0 ? &#34; checked=&#39;checked&#39; &#34; : &#34;&#34;) +<br />&#160; &#160; &#160; &#160; &#160; &#160; &#39; value=&#34;&#39; + cellValue + &#39;&#34; offval=&#34;no&#34; &#39; + ds +<br />&#160; &#160; &#160; &#160; &#160; &#160; &#39;/&#62;&#60;div title=&#34;&#39; + (options.colName &#124;&#124; options.colModel.label &#124;&#124; options.colModel.name) +<br />&#160; &#160; &#160; &#160; &#160; &#160; &#39;&#34; style=&#34;position:absolute;top:0px;left:0px;right:100%;bottom:100%;background:white;&#39; +<br />&#160; &#160; &#160; &#160; &#160; &#160; &#39;width:100%;height:100%;zoom:1;filter:alpha(opacity=0);opacity:0;&#34;&#62;&#60;/div&#62;&#60;/div&#62;&#39;;<br />&#160; &#160; }<br />});<br />$.extend($.fn.fmatter.clickableCheckbox, {<br />&#160; &#160; unformat: function (cellValue, options, elem) {<br />&#160; &#160; &#160; &#160; var cbv = (options.colModel.editoptions) ?<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; options.colModel.editoptions.value.split(&#34;:&#34;) :<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; [&#34;Yes&#34;, &#34;No&#34;];<br />&#160; &#160; &#160; &#160; return $(&#39;input&#39;, elem).is(&#34;:checked&#34;) ? cbv[0] : cbv[1];<br />&#160; &#160; }<br />});&#160;</div>
<p>In the formatter I included one more feature which I find very practical and use myself since a long time. It&#39;s tooltip (title attribute) on the cell having chechbox formatter. The problem will be clear if one have many columns with checkbox formatter in one grid. If the number of rows is large and one examine the row contain it&#39;s difficult to see in which column one have the checked checkbox. The are no hovering effect for the columns. In the case the tooltip on the chechbox with the column name is very helpful.</p>
<p>One have no access to the <strong>colNames</strong> inside of the formatter currently. With <a href="https://github.com/OlegKi/jqGrid/commit/7255f67b2172494c4732d017136e3d714e857a11" target="_blank">the small changes</a>&#160;one can include <strong>colName</strong> property in the options.</p>
<p>I think that the changes which I sugest will be helpfull for other users of jqGrid.</p>
<p>Best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Sun, 15 Jan 2012 14:27:19 +0200</pubDate>
        </item>
</channel>
</rss>