Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to set readonly property only for edit grid window columns?
    text
    copied!<p>i am doing my project using <strong>struts2</strong> and <strong>hibernate</strong> and i am using <strong>jqgrid</strong> for data display. Now i want to set <strong>readonly</strong> property for id field on the editGrid window. but not for add window. My sample code</p> <pre class="lang-xml prettyprint-override"><code>&lt;sjg:grid id="gridtable" caption="Customer List" dataType="json" href="%{remoteurl}" pager="true" gridModel="customerList" rowNum="10" autowidth="true" editurl="%{editurl}" editinline="false" navigator="true" navigatorAdd="true" navigatorAddOptions=" { viewPagerButtons:false, recreateForm:true, checkOnUpdate:true, closeAfterAdd:true }" navigatorDelete="true" navigatorEdit="true" navigatorRefresh="true" navigatorSearch="true" navigatorEditOptions=" { viewPagerButtons:false, recreateForm:true, checkOnUpdate:true, closeAfterEdit:true }" navigatorDeleteOptions="{ checkOnUpdate:true}" navigatorViewOptions=" { viewPagerButtons:false, recreateForm: true, checkOnUpdate: true }" navigatorSearchOptions="{sopt:['eq','ne','lt','gt','in','ni','cn','nc']}" navigatorView="true" rownumbers="true" rowList="10,20,30" viewrecords="true" &gt; &lt;sjg:gridColumn name="id" align="left" key="true" index="id" title="Customer id" sortable="false" editable="true" editrules="{ number: true, required: true }" edittype="text" /&gt; &lt;sjg:gridColumn name="custName" align="left" index="custName" title="Customer Name" sortable="false" editable="true" edittype="text" /&gt; ...... &lt;/sjg:grid&gt; </code></pre> <p>can i call <code>beforeShowForm</code> and <code>afterShowForm</code> functions inside the <strong>navigatorEditOption</strong>?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload