<?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: Disabling and reEnabling Cells in a jqGrid</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/disabling-and-reenabling-cells-in-a-jqgrid</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/disabling-and-reenabling-cells-in-a-jqgrid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>leinad on Disabling and reEnabling Cells in a jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/disabling-and-reenabling-cells-in-a-jqgrid#p24852</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/disabling-and-reenabling-cells-in-a-jqgrid#p24852</guid>
        	        	<description><![CDATA[<p>One more thing,</p>
</p>
<p>I want to restrict the data type entered into this cell</p>
<p>so i found a char restriction plugin that i have working for a text input and try the following</p>
<p>with amountCellWithData being a dummy class added so that i can easily retrieve the cells</p>
<p>&#160;$(".amountCellWithData").each(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(this).charRestriction({limit_to:"numeric"});<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; })</p>
</p>
<p>but does not work in the treegrid &#8211; any ideas on a surefire way to implement this or similar?</p>
<p>Thanks</p>
]]></description>
        	        	<pubDate>Tue, 11 Oct 2011 13:00:55 +0300</pubDate>
        </item>
        <item>
        	<title>leinad on Disabling and reEnabling Cells in a jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/disabling-and-reenabling-cells-in-a-jqgrid#p24851</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/disabling-and-reenabling-cells-in-a-jqgrid#p24851</guid>
        	        	<description><![CDATA[<blockquote>
<p>tony said:</p>
<p>Hello,</p>
<p>Yes this is true, there is no build in way to do this, but I think it is not so difficult.</p>
</p>
<p>Let me explain:</p>
<p>What you use in setCell to add the class &#8216;not-editable-cell&#8217;?</p>
<p>1. the id</p>
<p>2. the name of the column.</p>
</p>
<p>Having this and jQuery it is easy to remove the class. Why?</p>
<p>1. We know the id element from which to remove the class of some child.</p>
<p>2. We know the name of the column &#8211; i.e its position of the td&#160; in the table row</p>
</p>
<p>Suppose the amount have the position 2 (count from 0) you can easy do:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1491' value='Select Code' data-codeid='sfcode1491' /></p>
<div class='sfcode' id='sfcode1491'>
<p>jQuery(&#34;#&#34;+id+&#34; td:eq(&#34;+colpos+&#34;)&#34; ).removeClass(&#8216;not-editable-cell&#8217;);</p>
</div>
<p>Generally speaking you can get the colpos using this script:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit212' value='Select Code' data-codeid='sfcode212' /></p>
<div class='sfcode' id='sfcode212'>
<p>var colModel = jQuery(&#34;#gridid&#34;).jqGrid(&#39;getGridParam&#39;,&#39;colModel&#39;);</p>
<p>var colpos = null;</p>
<p>&#160; $(colModel).each(function(i){<br />&#160;&#160; &#160; if (this.name == &#39;amount&#39;) {<br />&#160;&#160; &#160;&#160; &#160;&#160;&#160;&#160; colpos = i;return false;<br />&#160;&#160; &#160; }<br />&#160; });</p>
</div>
<p>Regards</p>
</blockquote>
<hr />
<p>Hi Tony,</p>
</p>
<p>Yes have basically introduced this idea, but thought it should be built in</p>
</p>
<p>Thanks</p>
]]></description>
        	        	<pubDate>Tue, 11 Oct 2011 12:58:48 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Disabling and reEnabling Cells in a jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/disabling-and-reenabling-cells-in-a-jqgrid#p24735</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/disabling-and-reenabling-cells-in-a-jqgrid#p24735</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Yes this is true, there is no build in way to do this, but I think it is not so difficult.</p>
</p>
<p>Let me explain:</p>
<p>What you use in setCell to add the class &#8216;not-editable-cell&#8217;?</p>
<p>1. the id</p>
<p>2. the name of the column.</p>
</p>
<p>Having this and jQuery it is easy to remove the class. Why?</p>
<p>1. We know the id element from which to remove the class of some child.</p>
<p>2. We know the name of the column &#8211; i.e its position of the td&#160; in the table row</p>
</p>
<p>Suppose the amount have the position 2 (count from 0) you can easy do:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8234' value='Select Code' data-codeid='sfcode8234' /></p>
<div class='sfcode' id='sfcode8234'>
<p>jQuery(&#34;#&#34;+id+&#34; td:eq(&#34;+colpos+&#34;)&#34; ).removeClass(&#8216;not-editable-cell&#8217;);</p>
</div>
<p>Generally speaking you can get the colpos using this script:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6061' value='Select Code' data-codeid='sfcode6061' /></p>
<div class='sfcode' id='sfcode6061'>
<p>var colModel = jQuery(&#34;#gridid&#34;).jqGrid(&#39;getGridParam&#39;,&#39;colModel&#39;);</p>
<p>var colpos = null;</p>
<p>&#160; $(colModel).each(function(i){<br />&#160;&#160; &#160; if (this.name == &#39;amount&#39;) {<br />&#160;&#160; &#160;&#160; &#160;&#160;&#160;&#160; colpos = i;return false;<br />&#160;&#160; &#160; }<br />&#160; });</p>
</div>
<p>Regards</p>
]]></description>
        	        	<pubDate>Mon, 26 Sep 2011 13:14:55 +0300</pubDate>
        </item>
        <item>
        	<title>leinad on Disabling and reEnabling Cells in a jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/disabling-and-reenabling-cells-in-a-jqgrid#p24734</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/disabling-and-reenabling-cells-in-a-jqgrid#p24734</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>Does anyone have an answer for this, I was hoping it was a straightforward action,</p>
<p>But it doesnt seem it can easily be done in jqgrid</p>
</p>
<p>Thanks</p>
]]></description>
        	        	<pubDate>Mon, 26 Sep 2011 11:16:20 +0300</pubDate>
        </item>
        <item>
        	<title>leinad on Disabling and reEnabling Cells in a jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/disabling-and-reenabling-cells-in-a-jqgrid#p24723</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/disabling-and-reenabling-cells-in-a-jqgrid#p24723</guid>
        	        	<description><![CDATA[<div id="commentbody-30151">
<p>Hi,</p>
<p>I am using the following to disable a cell in :loadComplete method<br />grid.jqGrid(&#8216;setCell&#8217;, id, &#8216;amount&#8217;,&#160;&#39;&#39;, &#8216;not-editable-cell&#8217;);</p>
<p>How do I re-enable this cell?, I know I need to remove the class &#8216;non-editable-cell&#8217; added above but i dont see any option to do this</p>
<p>I have tried the above call with setting the class to &#8216;ui-state-active&#8217; also tried using getCell(&#8230;).removeClass(&#8216;not-editable-cell&#8217;) but that retrieves the value and not the Cell Object,</p>
<p>Would really appreciate an answer for this</p>
<p>Thanks</p>
</div>
]]></description>
        	        	<pubDate>Fri, 23 Sep 2011 18:59:38 +0300</pubDate>
        </item>
</channel>
</rss>