<?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: visible but not editable in a edit record form</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/visible-but-not-editable-in-a-edit-record-form</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/visible-but-not-editable-in-a-edit-record-form/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>phicarre on visible but not editable in a edit record form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/visible-but-not-editable-in-a-edit-record-form#p12239</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/visible-but-not-editable-in-a-edit-record-form#p12239</guid>
        	        	<description><![CDATA[<p>Yeah !!!</p>
<p>One time in the navigator (add):</p>
<p>...</p>
<p>recreateForm:true,</p>
<p>beforeInitData: function (formid){jQuery("#list1").setColProp(&#39;nom&#39;, {editoptions:{readonly:false}}); } ,</p>
<p>...</p>
</p>
<p>One time in the Grid:</p>
<p>jQuery("#list1").editGridRow(gr,<br />{</p>
<p>...</p>
<p>recreateForm:true,<br />beforeInitData: function (formid){jQuery("#list1").setColProp(&#39;nom&#39;, {editoptions:{readonly:true}});&#160; },</p>
<p>...</p>
</p>
<p>Very good analysis. very good exchange. better that "please consult the doc" ...</p>
]]></description>
        	        	<pubDate>Fri, 20 Nov 2009 17:05:43 +0200</pubDate>
        </item>
        <item>
        	<title>phicarre on visible but not editable in a edit record form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/visible-but-not-editable-in-a-edit-record-form#p12238</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/visible-but-not-editable-in-a-edit-record-form#p12238</guid>
        	        	<description><![CDATA[<p>When you say onBeforeInit you mean beforeInitData ...</p>
<p>This event occurs when I click the + but not when I click on the row !</p>
<p>For the time beeing I don&#39;t see how to change (to address) one of the proprietes of one raw: colModel.index or something like that ?</p>
]]></description>
        	        	<pubDate>Fri, 20 Nov 2009 16:32:44 +0200</pubDate>
        </item>
        <item>
        	<title>markw65 on visible but not editable in a edit record form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/visible-but-not-editable-in-a-edit-record-form#p12233</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/visible-but-not-editable-in-a-edit-record-form#p12233</guid>
        	        	<description><![CDATA[<p>Yes. I understood your question.</p>
</p>
<p>Just before the form is created, the grid calls your onBeforeInit function (if you have one). You can supply one onBeforeInit function for add, and one onBeforeInit for edit.</p>
</p>
<p>Use the onBeforeInit functions to change the editoptions for the column in question (ie add or remove the readonly property from colModel).</p>
</p>
<p>You also need to set recreateForm to true, to ensure the form is rebuilt every time you call editGridRow (otherwise it just re-uses the previous form, with new values inserted, and wont call onBeforeInit, or look at your colModel options).</p>
</p>
<p>Mark</p>
]]></description>
        	        	<pubDate>Fri, 20 Nov 2009 11:33:46 +0200</pubDate>
        </item>
        <item>
        	<title>phicarre on visible but not editable in a edit record form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/visible-but-not-editable-in-a-edit-record-form#p12232</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/visible-but-not-editable-in-a-edit-record-form#p12232</guid>
        	        	<description><![CDATA[<p>I think that my question is not well formulated or I didn&#39;t understand your answer.</p>
<p>(for set/clear attribute: ok)</p>
<p>I have a grid. When I click on one row, a form is displayed for modification/edit. In this case I protect one field with "readonly" as you suggested. I can change all fields excepted this one.</p>
<p>In the pager, I use the "+" for the creation. When I click on it, the same form is displayed BUT, in this case, I want to edit the field.</p>
<p>but it&#39;s impossible because of the "readonly" !</p>
<p>That&#39;s why I asked if we can have two forms !</p>
]]></description>
        	        	<pubDate>Fri, 20 Nov 2009 10:36:04 +0200</pubDate>
        </item>
        <item>
        	<title>markw65 on visible but not editable in a edit record form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/visible-but-not-editable-in-a-edit-record-form#p12228</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/visible-but-not-editable-in-a-edit-record-form#p12228</guid>
        	        	<description><![CDATA[<blockquote>
<p>phicarre said:</p>
<p>I replied too quickly â€¦</p>
<p>because now I cannot create a record â€¦</p>
<p>In fact I must have two forms: one for the creation and one for the edition/modification.</p>
<p>Is it possible to have different forms ?</p>
</blockquote>
<hr />
<p>In that case you can set recreateForm true (so that the form gets rebuilt every time you click the add or edit buttons), and use onBeforeInit to set/clear the readonly attribute in the colModel.</p>
</p>
<p>Mark</p>
]]></description>
        	        	<pubDate>Fri, 20 Nov 2009 09:07:47 +0200</pubDate>
        </item>
        <item>
        	<title>markw65 on visible but not editable in a edit record form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/visible-but-not-editable-in-a-edit-record-form#p12227</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/visible-but-not-editable-in-a-edit-record-form#p12227</guid>
        	        	<description><![CDATA[<blockquote>
<p>phicarre said:</p>
<p>I replied too quickly &#8230;</p>
<p>because now I cannot create a record &#8230;</p>
<p>In fact I must have two forms: one for the creation and one for the edition/modification.</p>
<p>Is it possible to have different forms ?</p>
</blockquote>
<hr />
<p>In that case you can set recreateForm true (so that the form gets rebuilt every time you click the add or edit buttons), and use onBeforeInit to set/clear the readonly attribute in the colModel.</p>
</p>
<p>Mark</p>
]]></description>
        	        	<pubDate>Fri, 20 Nov 2009 09:07:45 +0200</pubDate>
        </item>
        <item>
        	<title>phicarre on visible but not editable in a edit record form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/visible-but-not-editable-in-a-edit-record-form#p12222</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/visible-but-not-editable-in-a-edit-record-form#p12222</guid>
        	        	<description><![CDATA[<p>I replied too quickly ...</p>
<p>because now I cannot create a record ...</p>
<p>In fact I must have two forms: one for the creation and one for the edition/modification.</p>
<p>Is it possible to have different forms ?</p>
]]></description>
        	        	<pubDate>Fri, 20 Nov 2009 05:13:45 +0200</pubDate>
        </item>
        <item>
        	<title>phicarre on visible but not editable in a edit record form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/visible-but-not-editable-in-a-edit-record-form#p12221</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/visible-but-not-editable-in-a-edit-record-form#p12221</guid>
        	        	<description><![CDATA[<p>YES ! very good.</p>
<p>Now I must change the color in the form because I don&#39;t see the difference with the other fields.</p>
<p>Thank you.</p>
]]></description>
        	        	<pubDate>Fri, 20 Nov 2009 04:54:47 +0200</pubDate>
        </item>
        <item>
        	<title>markw65 on visible but not editable in a edit record form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/visible-but-not-editable-in-a-edit-record-form#p12195</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/visible-but-not-editable-in-a-edit-record-form#p12195</guid>
        	        	<description><![CDATA[<p><input type='button' class='sfcodeselect' name='sfselectit9521' value='Select Code' data-codeid='sfcode9521' /></p>
<div class='sfcode' id='sfcode9521'>editoptions:{readonly:"readonly"}</div>
</p>
<p>Mark</p></p>
]]></description>
        	        	<pubDate>Thu, 19 Nov 2009 12:45:34 +0200</pubDate>
        </item>
        <item>
        	<title>phicarre on visible but not editable in a edit record form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/visible-but-not-editable-in-a-edit-record-form#p12192</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/visible-but-not-editable-in-a-edit-record-form#p12192</guid>
        	        	<description><![CDATA[<p>Please, could you confirm me that this is impossible:</p>
</p>
<p>- to have a field visible but not editable in a row</p>
<p>and</p>
<p>- to have this field visible but not editable in a edit record form</p>
</p>
<p>I believe that if a field is not editable then it is not visible in a form</p>
</p>
<p>Or do you have a "trick" ?</p>
]]></description>
        	        	<pubDate>Thu, 19 Nov 2009 11:38:21 +0200</pubDate>
        </item>
</channel>
</rss>