<?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: Field Editable Attribute &#091;Add vs Edit&#093;</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/field-editable-attribute-add-vs-edit</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/field-editable-attribute-add-vs-edit/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Mike on Field Editable Attribute &#091;Add vs Edit&#093;</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/field-editable-attribute-add-vs-edit#p8376</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/field-editable-attribute-add-vs-edit#p8376</guid>
        	        	<description><![CDATA[<p>Thanks for your help Tony!</p>
]]></description>
        	        	<pubDate>Fri, 07 Aug 2009 14:33:44 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Field Editable Attribute &#091;Add vs Edit&#093;</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/field-editable-attribute-add-vs-edit#p8349</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/field-editable-attribute-add-vs-edit#p8349</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>You can use the beforeShowForm event which should be diffrent for the diffrent actions. Let suppose that the field has a name mykey, then in editGridRow beforeShowForm event</p>
</p>
<p>beforeShowForm : function(formid) { <br /> &#160; &#160;jQuery(&#8221;#mykey&#8221;,formid).attr(&#8221;readonly&#8221;,true);</p>
<p>}</p>
</p>
<p>in add mode in beforeShowForm</p>
<p>beforeShowForm : function(formid) { <br /> &#160; &#160;jQuery(&#8221;#mykey&#8221;,formid).removeAttr(&#8221;readonly&#8221;);</p>
<p>}</p>
</p>
<p>Hope this helps</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 07 Aug 2009 00:15:00 +0300</pubDate>
        </item>
        <item>
        	<title>Mike on Field Editable Attribute &#091;Add vs Edit&#093;</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/field-editable-attribute-add-vs-edit#p8323</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/field-editable-attribute-add-vs-edit#p8323</guid>
        	        	<description><![CDATA[<p>Hi All,</p>
</p>
<p>I apologize in advance if there is already functionality for the following issue my developer has brought to my attention.</p>
<p>We have many tables where the user enters a unique key when inserting a new record.&#160; This key field is not to be changed after it has been inserted.&#160;Therefore when the user clicks on a row to edit, we need the key fields to be locked for editing.&#160; The key fields should only be editable when adding a new record.</p>
<p>How can we handle this situation with the current grid functionality?</p>
<p>If it cannot be done, I&#39;m requesting the ability to&#160;toggle a column as&#160;editable/uneditable for &#8220;Add&#8221; AND &#8220;Edit&#8221;.&#160; Right now it seems we are limited to make the field editable on both Add and Edit instead of either/or.</p>
<p>Thanks for any help or guidance in this situation.</p></p>
]]></description>
        	        	<pubDate>Thu, 06 Aug 2009 11:57:28 +0300</pubDate>
        </item>
</channel>
</rss>