<?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: beforeEditCell - can edit cell only once after it's locked</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/beforeeditcell-can-edit-cell-only-once-after-its-locked</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/beforeeditcell-can-edit-cell-only-once-after-its-locked/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>denfer on beforeEditCell - can edit cell only once after it's locked</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/beforeeditcell-can-edit-cell-only-once-after-its-locked#p28478</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/beforeeditcell-can-edit-cell-only-once-after-its-locked#p28478</guid>
        	        	<description><![CDATA[<p>
&#160;&#160;Hello,<br />I have implemented the below code to edit a cell based on another cell value.<br />it works only once and then the cell is locked.<br />I can&#39;t managed to solved the issue.<br />&#160;&#160;<br />&#160;&#160;</p>
<p><input type='button' class='sfcodeselect' name='sfselectit559' value='Select Code' data-codeid='sfcode559' /></p>
<div class='sfcode' id='sfcode559'>GridTemplate.Finance_List.defaults = {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: &#39;&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: null,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: &#39;470&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; autowidth: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; shrinkToFit: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; multiselect: multi, //this add Checkbox in front of each row<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; cellEdit: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; cellsubmit: &#39;clientArray&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum: 20,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; scrollOffset: 0,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; postData:<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; OnlyPending: null<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; beforeEditCell: function (rowid, cellname, value, iRow, iCol)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //get Row data and check current Status<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var rowData = jQuery(this).getRowData(rowid);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var CurrentStatus = rowData[&#39;Status&#39;];<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (CurrentStatus != &#34;Rejected&#34;)<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; editCell(iRow, iCol, false);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //jQuery(this).jqGrid(&#39;editRow&#39;, rowid, false);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(this).jqGrid(&#34;restoreCell&#34;, iRow, iCol);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; },</div>
</p>
<p>I have only set editable one column that I want to edit</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1268' value='Select Code' data-codeid='sfcode1268' /></p>
<div class='sfcode' id='sfcode1268'>[GemDisplayName(&#34;Rejection&#60;br/&#62;Comment&#34;)]<br />[GridMetaData(GridPropertyName = &#34;width&#34;, GridPropertyValue = &#34;70&#34;)]<br />[GridMetaData(GridPropertyName = &#34;align&#34;, GridPropertyValue = &#34;left&#34;)]<br />[GridMetaData(GridPropertyName = &#34;editable&#34;, GridPropertyValue = &#34;true&#34;, GridPropertyValueType = GridPropertyValueTypes.TypeBool)]<br />[GridMetaData(GridPropertyName = &#34;edittype&#34;, GridPropertyValue = &#34;textarea&#34;)]<br />public string Finance_Rejection_Reason { get; set; }</div>
<p>any idea why I get this behaviour ?</p>
]]></description>
        	        	<pubDate>Tue, 19 Mar 2013 14:55:41 +0200</pubDate>
        </item>
</channel>
</rss>