<?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: Add and Edit form editing issue</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/add-and-edit-form-editing-issue</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/add-and-edit-form-editing-issue/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>larole on Add and Edit form editing issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-and-edit-form-editing-issue#p8990</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-and-edit-form-editing-issue#p8990</guid>
        	        	<description><![CDATA[<p>Thx m8, that was very helpful.</p>
]]></description>
        	        	<pubDate>Thu, 27 Aug 2009 09:50:05 +0300</pubDate>
        </item>
        <item>
        	<title>Renso on Add and Edit form editing issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-and-edit-form-editing-issue#p8986</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-and-edit-form-editing-issue#p8986</guid>
        	        	<description><![CDATA[<p>You cannot specify or override the colModel properties during navigation (i.e. navGrid). You need to attack it during the <strong>beforeShowForm </strong>event:</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; .navGrid(item + &#39;Pager&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { refresh: true, edit: true, add: true, del: true, search: false }, //options <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {height: 280, width: 500,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; reloadAfterSubmit: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; modal: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; processData: &#39;Updating the data...&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; editCaption: &#39;Edit data,</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <strong>beforeShowForm</strong>: function(form) {<br /> &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: #ff0000;">$(&#39;#Password.FormElement&#39;).<strong>hide</strong>();</span><br /> &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<strong> <span style="color: #99ccff;">// edit options </span></strong><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {height: 280, width: 500,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; reloadAfterSubmit: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; modal: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; processData: &#39;Adding the new data...&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; addCaption: &#39;Add new data&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <strong>beforeShowForm</strong>: function(form) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: #ff0000;">$(&#39;#Password.FormElement&#39;).<strong>show</strong>();</span><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }, <strong><span style="color: #99ccff;">// add options</span></strong></p>
</p>
<p>Added ".FormElement" class in case you have another field on your screen with the same id, less chance of a selector clash. Of course you can ommit it or search within the form window also: <span style="color: #ff0000;">form.find(&#39;#FirstName&#39;).hide();</span></p>
]]></description>
        	        	<pubDate>Thu, 27 Aug 2009 07:07:11 +0300</pubDate>
        </item>
        <item>
        	<title>larole on Add and Edit form editing issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-and-edit-form-editing-issue#p8985</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-and-edit-form-editing-issue#p8985</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>Im just started using jqgrid and its great but i can&#39;t find out how i can make a field editable in add form dialog and not in edit dialog. It seems that when changing edit dialog it also effects the add dialog. How can i make a field visible and editable in add dialog and not visible/editable in edit dialog?</p>
<p>For example i want this field to behave like that:</p>
<p>{ name: &#39;Password&#39;, index: &#39;Password&#39;, hidden: true, edittype: &#39;password&#39;, editable: true, editoptions: { size: 25 }, formoptions: { elmsuffix: &#39;(*)&#39; }, editrules: { edithidden:&#39;true&#39;, required: &#39;true&#39;} },</p>
]]></description>
        	        	<pubDate>Thu, 27 Aug 2009 04:36:36 +0300</pubDate>
        </item>
</channel>
</rss>