title: jqGrid: Disable form fields when editing
body: <p>I'm currently developing a web application designed for the administration of vending machines and such.
  I decided to use jQuery, jQuery UI and jqGrid for this project, so I can easily provide a great and highly customizable user interface.<br>
  Unfortunately, the <strong><a href="http://www.trirand.com/jqgridwiki/" rel="noreferrer" title="jqGrid wiki">jqGrid documentation</a></strong> is pretty outdated and doesn't cover all the features of this great plug-in (cause I do really like it, even though the documentation is rather poor).</p>
  
  <p>Anyway, enough background information, I suppose. Let's get to the point:<br>
  I use the navbar which is built-in to jqGrid to Add, Edit and Delete items from the grid.<br>
  I've got this working like a charm, except for one thing: some fields may only be enabled (or visible) when adding a new item and not when in editing-mode (they should be hidden and/or disabled).  </p>
  
  <blockquote>
    <p><strong>Example:</strong><br>
    The company I'm working for sells vending towers and
    there are several types (different
    sizes and stuff) of these towers. When
    a new tower is added to a location and
    entered into the system, the type
    must be set. But the tower doesn't
    magically change over time, so this
    field may not be edited later on.</p>
  </blockquote>
  
  <p>Does anyone know if this behavior can be accomplished by changing some initialization parameters?<br>
  Perhaps it's an undocumented edit-option (<em>editoptions</em>) or form-option (<em>formoptions</em>)?<br>
  Or maybe you've got a simple solution for this?</p>
  
  <p>I'd love to hear your suggestion / solutions!<br>
  Thanks =)</p>