<?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 / How to disable or remove a checkbox in some cells</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/cell-editing-how-to-disable-or-remove-a-checkbox-in-some-cells</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/cell-editing-how-to-disable-or-remove-a-checkbox-in-some-cells/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>markw65 on Cell Editing / How to disable or remove a checkbox in some cells</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cell-editing-how-to-disable-or-remove-a-checkbox-in-some-cells#p9023</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cell-editing-how-to-disable-or-remove-a-checkbox-in-some-cells#p9023</guid>
        	        	<description><![CDATA[<p>Couldnt you use the formatCell or beforeEditCell event instead?</p></p>
]]></description>
        	        	<pubDate>Fri, 28 Aug 2009 12:58:23 +0300</pubDate>
        </item>
        <item>
        	<title>zerikv on Cell Editing / How to disable or remove a checkbox in some cells</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cell-editing-how-to-disable-or-remove-a-checkbox-in-some-cells#p9021</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cell-editing-how-to-disable-or-remove-a-checkbox-in-some-cells#p9021</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>To solve my problem I have inserted in grid.celledit.js at the line 61 (of 3.5.2) this test:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1616' value='Select Code' data-codeid='sfcode1616' /></p>
<div class='sfcode' id='sfcode1616'>
<p>if(cc[0].innerHTML.length==0 &#124;&#124; cc[0].innerHTML.indexOf("disabled")!=-1){<br />&#160;&#160;&#160;&#160; return;<br />}</p>
</p>
</div>
<p>It&#39;s dirty, but it works...</p>
<p>~~~</p>
<p>Eric</p></p>
]]></description>
        	        	<pubDate>Fri, 28 Aug 2009 12:33:57 +0300</pubDate>
        </item>
        <item>
        	<title>zerikv on Cell Editing / How to disable or remove a checkbox in some cells</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cell-editing-how-to-disable-or-remove-a-checkbox-in-some-cells#p9016</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cell-editing-how-to-disable-or-remove-a-checkbox-in-some-cells#p9016</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I use the cell editing (with jqGrid 3.5.2) and I need to disable or remove an input element (checkbox) depending on the context of each row.</p>
<p>I use the callback afterInsertRow() to do that:</p>
<p>&#160;&#160;&#160; To disable the checkbox:<br />&#160;&#160;&#160; <br />&#160;&#160;&#160; &#160;&#160;&#160; $("#gridid&#160; tr[id=&#39;"+rowid+"&#39;] &#62; td:eq(6) &#62; input").attr("disabled",true);<br />&#160;&#160;&#160; &#160;&#160;&#160; <br />&#160;&#160;&#160; To remove the checkbox:<br />&#160;&#160;&#160; <br />&#160;&#160;&#160; &#160;&#160;&#160; $("#gridid&#160; tr[id=&#39;"+rowid+"&#39;] &#62; td:eq(6)").html("");<br />&#160;&#160;&#160; &#160;&#160;&#160; <br />The problem is that jqGrid is "too" smart because it restores the checkbox and activates it when I click on the row.</p>
<p>Is it possible to keep the input element in the state set by afterInsertRow with the API (without modifying the code in grid.celledit.js) ?</p>
<p>Thanks for your advice.<br />~~~<br />Eric</p>
]]></description>
        	        	<pubDate>Fri, 28 Aug 2009 09:46:31 +0300</pubDate>
        </item>
</channel>
</rss>