<?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: Inline edit and dynamically controlling cell editing </title>
	<link>http://www.trirand.com/blog/?page_id=393/help/inline-edit-and-dynamically-controlling-cell-editing</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/inline-edit-and-dynamically-controlling-cell-editing/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Pete on Inline edit and dynamically controlling cell editing </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-edit-and-dynamically-controlling-cell-editing#p25300</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-edit-and-dynamically-controlling-cell-editing#p25300</guid>
        	        	<description><![CDATA[<p>Thanks Oleg! I am not sure how I missed those posts, it could have saved me some work!</p>
<p>I appreciate the follow up.</p>
</p>
<p>Pete</p>
]]></description>
        	        	<pubDate>Fri, 02 Dec 2011 02:19:34 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Inline edit and dynamically controlling cell editing </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-edit-and-dynamically-controlling-cell-editing#p25299</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-edit-and-dynamically-controlling-cell-editing#p25299</guid>
        	        	<description><![CDATA[<p>Hello Pete,</p>
<p>You posted link to my old code from <a href="http://stackoverflow.com/a/5092645/315935" target="_blank">the answer</a>&#160;so I decide that I should wrote you. If you use inline editing you can set&#160;"not-editable-row" class to disable editing of some rows (see <a href="http://stackoverflow.com/a/8086571/315935" target="_blank">here</a> for example).</p>
<p>Look at <a href="http://stackoverflow.com/a/4308172/315935" target="_blank">the answer</a>&#160;or <a href="http://stackoverflow.com/a/7732536/315935" target="_blank">this one</a>&#160;in case of inline editing and <a href="http://stackoverflow.com/a/3405961/315935" target="_blank">the answer</a>&#160;for the form editing.&#160;The solution which you found yourself use the same technique.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Fri, 02 Dec 2011 01:38:12 +0200</pubDate>
        </item>
        <item>
        	<title>Pete on Inline edit and dynamically controlling cell editing </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-edit-and-dynamically-controlling-cell-editing#p25295</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-edit-and-dynamically-controlling-cell-editing#p25295</guid>
        	        	<description><![CDATA[<p>A&#160; little trial and error got this to work.&#160; In my onSelectRow function I added this:</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160;&#160; var grid = $(&#39;#myGrid&#39;);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;var colContent = grid.jqGrid(&#39;getCell&#39;,id,&#39;myColumn&#39;);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;if(colContent.length&#62;0)<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;grid.setColProp(&#39;myColumn&#39;,{editable:false});<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;else<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;grid.setColProp(&#39;myColumn&#39;,{editable:true});</p>
<p>This does exactly what I was hoping to do.&#160; When I have a column that already has content that I want to "protect" from editing, this makes the column not editable.&#160; But when I have blank data, I can edit the field.</p>
</p>
<p>Posted here so if someone comes across the same issue they can get a quick solution.</p>
]]></description>
        	        	<pubDate>Thu, 01 Dec 2011 19:00:30 +0200</pubDate>
        </item>
        <item>
        	<title>Pete on Inline edit and dynamically controlling cell editing </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-edit-and-dynamically-controlling-cell-editing#p25283</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-edit-and-dynamically-controlling-cell-editing#p25283</guid>
        	        	<description><![CDATA[<p>I found some code that Oleg posted here: <a href="http://www.ok-soft-gmbh.com/jqGrid/NonEditableCellsDynamic.htm" rel="nofollow" target="_blank"><a href="http://www.ok-soft-gmbh.com/jq" rel="nofollow">http://www.ok-soft-gmbh.com/jq</a>.....ynamic.htm</a> that shows how cell editing can be dynamically controlled.&#160; The only problem is that it uses a cell editing approach rather than a row editing approach which breaks my application.</p>
<p>Preventing editing on the column by setting the column editable= false works for existing records but when I add a new row to the grid I want all the columns in the empty row to be editable so new data can be entered.</p>
<p>Can you think of any way to accomplish this?&#160; If seems that the inline editing doesn&#39;t allow for modifications of the cell attributes (like setting the class = &#39;not-editable-cell&#39;&#160; or removing the class).&#160; I want one column to NOT be editable *except* when a new row is added that has empty cell content.&#160; Ideas?&#160; (running 3.8.2 of jQGrid currently)</p>
<p>Thanks!</p>
]]></description>
        	        	<pubDate>Thu, 01 Dec 2011 02:31:41 +0200</pubDate>
        </item>
</channel>
</rss>