<?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: Require a field editable in Add but not Edit</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/require-a-field-editable-in-add-but-not-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/help/require-a-field-editable-in-add-but-not-edit/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>sipsorcery on Require a field editable in Add but not Edit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/require-a-field-editable-in-add-but-not-edit#p20345</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/require-a-field-editable-in-add-but-not-edit#p20345</guid>
        	        	<description><![CDATA[<p>I&#39;ve been googling around for an hour and still haven&#39;t managed to get beforeShowForm working.</p>
<p>I found this example on StackOverflow but it&#39;s not working for me, what am I missing?</p>
<p>&#160;function initGrid() {</p>
<p>&#160;&#160;&#160;&#160;&#160; jQuery("#myGrid").jqGrid(&#39;navGrid&#39;,&#39;#myGrid-pager&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { }, //options<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { // edit options<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; beforeShowForm: function(frm) { <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert("beforeShowForm edit");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#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; }, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { // add options<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; beforeShowForm: function(frm) { <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert("beforeShowForm add");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#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; }, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { }, // del options<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { } // search options<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; );</p>
<p>&#160;}</p>
</p>
<p>Thanks,</p>
<p>Aaron</p>
]]></description>
        	        	<pubDate>Sat, 16 Oct 2010 14:47:45 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Require a field editable in Add but not Edit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/require-a-field-editable-in-add-but-not-edit#p20322</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/require-a-field-editable-in-add-but-not-edit#p20322</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>There are a lot of exmples here in this forum.</p>
<p>You will neeed to use beforeShowForm form event for this purpose.</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Fri, 15 Oct 2010 17:11:32 +0300</pubDate>
        </item>
        <item>
        	<title>sipsorcery on Require a field editable in Add but not Edit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/require-a-field-editable-in-add-but-not-edit#p20319</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/require-a-field-editable-in-add-but-not-edit#p20319</guid>
        	        	<description><![CDATA[<p>I have some fields that are allowed to be entered by the user when creating a new object but not when editing an existing object. Is there anyway I can set an option on the grid model to do that?</p>
<p>Thanks,</p>
<p>Aaron</p>
]]></description>
        	        	<pubDate>Fri, 15 Oct 2010 14:02:17 +0300</pubDate>
        </item>
</channel>
</rss>