<?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: utilizing not-editable-cell in inlineedit</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/utilizing-not-editable-cell-in-inlineedit</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/utilizing-not-editable-cell-in-inlineedit/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tach95 on utilizing not-editable-cell in inlineedit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/utilizing-not-editable-cell-in-inlineedit#p23348</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/utilizing-not-editable-cell-in-inlineedit#p23348</guid>
        	        	<description><![CDATA[<p>First off jqGrid is a fantastic plugin.&#160; Thanks</p>
<p>&#8212;&#8212;</p>
<p>I have a project where the users want to use inline editing because of its convenience to update some data.</p>
<p>However, for certain rows I need certain columns to be not editable.&#160;&#160;</p>
<p>So my feature request is simply I want to add a cell class &#8212;-call it "not-editable-cell"&#160; so that cell within a specific row is display only when the row is edited.</p>
<p>So my code would look something like:</p>
<pre class="code javascript">First off in my colModel would be<br /><br />{name:&#39;lockRowCells&#39;, hidden: true},<br /><br />{name:&#39;event&#39;, index:&#39;event&#39;, width:100, align:"center", <br /><br />   resizable: true, editable:true, sortable: false, <br /><br />    edittype: "select", <br /><br />    editoptions:{value:":-Select-;01:Some Event Name;"},  <br /><br />     lockcell: true},<br /><br />lockcell is a custom attribute I add for my project.<br /><br />Then<br /><br />onSelectRow: function(id){ <br /><br /></pre>
<p>&#160;var columns = $(gridElementId).jqGrid(&#39;getGridParam&#39;,</p>
<p>&#39;colModel&#39;);</p>
<p>&#160;var row = $(gridElementId).jqGrid(&#39;getRowData&#39;, id);</p>
<pre> if (row.lockRowCells) <br /><br />   $.each(columns, function() { <br /><br />      if (this.lockcell) {<br /><br />          &#160;$(gridElementId).<br /><br />              jqGrid(&#39;setCell&#39;, id, this.name, "",<br /><br />                      &#160;&#39;not-editable-cell&#39;);<br />      } <br />   }); </pre>
</p>
<p>&#160;$(gridElementId).jqGrid(&#39;editRow&#39;, id);</p>
<p>}</p>
</p>
<p>I would still utilize not-editable-row if needed. And I prefer inline editing vs</p>
<p>cell editing since I delete rows in the grid as well.</p>
<p>Thank you</p>
]]></description>
        	        	<pubDate>Thu, 26 May 2011 19:01:00 +0300</pubDate>
        </item>
</channel>
</rss>