title: Make a column be a checkbox
body: <p>I load a grid with a database request (in PHP with CodeIgniter abd jqgrid helper). I haven't any issue to display a nice grid with my datas.</p>
  
  <p>I want to display a new colomn with checkboxes in order to choose one or several rows.</p>
  
  <p>It's impossible to add a new column after loading. So I'm try to do like this :
  - The colomn is added when creating the grid,
  - At creating, i add a 'loadComplete' option with a function,
  - At diplaying, the function is executed. Here it is :</p>
  
  <pre><code>function ajoutCheckBox() {
      var grille = $("#users_grid");
  
      // Construire les checkbox dans la colonne D
      grille.setColProp('Dest', {editable: true});
      grille.setColProp('Dest', {edittype: 'checkbox'});
      grille.setColProp('Dest', {editoptions: { value: "True:False" }});
      grille.setColProp('Dest', {formatter: "checkbox"});
      grille.setColProp('Dest', {formatoptions: { disabled: true}});
  
  
  
      // Insérer la valeur false dans toutes les lignes de la colonne D
      var index   = grille.jqGrid('getGridParam', '_index');
  
      for(i in index) {
          grille.jqGrid('setCell', i, 'Dest', 'False', {});
      }
  }
  </code></pre>
  
  <p>As you can see, the gris is called "#users_grid" and the column "Dest".</p>
  
  <p>My issue : nothing appends...</p>
  
  <p>Thank you for your help !</p>
  
  <p>XB</p>
  
  <p>EDIT :
  I found the following solution :</p>
  
  <ul>
  <li>Column of checkboxes is added in the colModel statement,</li>
  <li>To initialize the value and to activate the checkboxes (<strong>they are disabled on creating !</strong>), I use a <code>"loadComplete"</code> callback function.</li>
  </ul>
  
  <p>The code is very simple but hard for me to find...</p>
  
  <p>The grid creation :</p>
  
  <pre><code>loadComplete: function() { ajoutCheckBox() },
  colModel:[.... {"name":"Env","index":"Env","width":30,"hidden":false,"align":"left","edittype":"checkbox","formatter":"checkbox","formatoptions":"{ disabled: false}","editable":true,"editoptions":{"editoptions":"{ value: \"True:False\",  defaultValue: \"False\" }}","size":10}}, ....]
  </code></pre>
  
  <p>The callback function :</p>
  
  <pre><code>function ajoutCheckBox() {
      var grille = $("#users_grid");
      var index = grille.jqGrid('getGridParam', '_index');
  
      for(i in index) { // Pour toutes les lignes du tableau
          grille.jqGrid('setCell', i, 'Env', 'False');
          $('#'+i).find("input:checkbox").removeAttr('disabled');
      }
  }
  </code></pre>
  
  <p>It doesn't seem to be optimized but it works !</p>