<?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: conditional editCell</title>
	<link>http://www.trirand.com/blog/?page_id=393/discussion/conditional-editcell</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/discussion/conditional-editcell/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>RobGMiller on conditional editCell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/conditional-editcell#p4605</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/conditional-editcell#p4605</guid>
        	        	<description><![CDATA[<p>After reading a suggestion in this forum, I tried to use beforeEditCell to detect the value of the conditionnal field. It will run a function that tests the conditionnal field and returns true or false. As follows:</p>
<p>var allowedit = true;</p>
</p>
<p>if ($.isFunction($t.p.beforeEditCell)) {</p>
<p>&#160;&#160; &#160; &#160;allowedit = $t.p.beforeEditCell($t.rows[iRow].id, nm, tmp, iRow, iCol);</p>
<p>}</p>
<p>if (allowedit) {</p>
<p>&#160;&#160; &#160; &#160;$(cc).html("").append(elc); ...............</p>
<p>}</p>
<div>The modifications are placed around line 85 in grid.celledit.js of version 3.4.</div>
<div></div>
<div>Can anyone see complications resulting from the change?</div>
<div></div>
<div>Thanks.</div>
<div></div>
<div>RobGMiller&#160;</div>
]]></description>
        	        	<pubDate>Fri, 13 Feb 2009 11:30:13 +0200</pubDate>
        </item>
        <item>
        	<title>RobGMiller on conditional editCell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/conditional-editcell#p4601</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/conditional-editcell#p4601</guid>
        	        	<description><![CDATA[<p>I am looking for a way to prevent the editCell functionality from working depending on the value of a different column on that row.</p>
<p>I am looking for a quick suggestion on how the value can be access from line 65 in celledit.js.</p>
<p>I believe that if another condition could be added to the if statement that converts a cell to an input the conversion could be prevented.&#160;</p>
<p>if ($t.p.colModel[iCol].editable === true &#38;&#38; ed === true) {.....}</p>
<p>&#160;I&#39;ve tried $t.p.getCell(3,2) but it did not work from this code point.</p>
<p>as in:</p>
<p>if ($t.p.colModel[iCol].editable === true &#38;&#38; ed === true &#38;&#38;&#160;$t.p.getCell(3,2) === true) {.....}</p>
</p>
<p>Thanks,</p>
</p>
<p>RobGMiller..</p>
]]></description>
        	        	<pubDate>Fri, 13 Feb 2009 09:05:04 +0200</pubDate>
        </item>
</channel>
</rss>