<?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: Allow filed displayed in "add" panel while NOT in "edit" panel</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/allow-filed-displayed-in-add-panel-while-not-in-edit-panel</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/allow-filed-displayed-in-add-panel-while-not-in-edit-panel/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>ssssssssssss on Allow filed displayed in "add" panel while NOT in "edit" panel</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/allow-filed-displayed-in-add-panel-while-not-in-edit-panel#p11522</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/allow-filed-displayed-in-add-panel-while-not-in-edit-panel#p11522</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
</p>
<p>I&#39;ve read the docs but found no way to make a filed can only be displayed in "add record" panel and won&#39;t be displayed in "edit record" panel. As some data we can add it to db but we can&#39;t modify it anymore.</p>
</p>
<p>Now, I have a work around:</p>
<p>colModel:&#160;&#160;&#160; &#160; &#160; &#160;{name: "canNOTChangeAgain", width:100, hidden:true, key:true, hidedlg:true, <strong>hideedit:true;</strong> editable:true, editrules:{edithidden:true, required:true, integer:true}},</p>
<div></div>
</p>
<pre class="prettyprint"><code><span class="pln">{afterShowForm</span><span class="pun">:</span><span class="pln">afterShowEdit}</span></code></pre>
<pre class="prettyprint"><span style="font-family: monospace;"><br /></span></pre>
<pre class="prettyprint"><span style="font-family: monospace;">function afterShowEdit(id)</span></pre>
<pre class="prettyprint"><span style="font-family: monospace;">{</span></pre>
<pre class="prettyprint"><span style="font-family: monospace;"><span style="white-space:pre">	</span>$(won&#39;t displayed elements <strong>hideedit:true</strong>) set visible : hidden;</span></pre>
<pre class="prettyprint"><span style="font-family: monospace;">}</span></pre>
<pre class="prettyprint"><span style="font-family: monospace;"><br /></span></pre>
<pre class="prettyprint"><span style="font-family: monospace;">Is there an official way or an even better way?</span></pre></p>
]]></description>
        	        	<pubDate>Thu, 05 Nov 2009 03:12:28 +0200</pubDate>
        </item>
</channel>
</rss>