<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Javascript on grid</title><link>https://www.aras.com/community/f/development/37520/javascript-on-grid</link><description>How can i block/disable userstatus when VFI from a grid is either being created or edited and where should i run the method? by lock i mean uneditable or the user should not be able to edit.</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Javascript on grid</title><link>https://www.aras.com/community/thread/8594?ContentTypeID=1</link><pubDate>Thu, 28 Jul 2022 16:39:10 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:fbb1e103-782b-4c88-9aed-cbc6529a4e4e</guid><dc:creator>hkhan</dc:creator><description>&lt;p&gt;This is perfect and you are&amp;nbsp;the best thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Javascript on grid</title><link>https://www.aras.com/community/thread/8592?ContentTypeID=1</link><pubDate>Thu, 28 Jul 2022 15:58:42 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:cd5e2ccf-142d-4d96-9746-697a0a39b763</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;You could use an onEditStart property event. When you return false the field is not editable, if you return true it is.&lt;/p&gt;
&lt;p&gt;You can also add extra code to make the property only editable at certain conditions.&lt;/p&gt;
&lt;p&gt;Some sample from one of my custom own ItemTypes:&lt;/p&gt;
&lt;p&gt;if (latestNativeId !== relationshipID)&lt;br /&gt; {&lt;br /&gt;&amp;nbsp; ArasModules.notify(&amp;quot;State of previous backups cannot be changed.&amp;quot;, {type: &amp;quot;warning&amp;quot;,timeout:2000});&lt;br /&gt;&amp;nbsp; return false; // do not allow edit&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>