title: Edit cell properties of a handsontable grid
body: <p>I have a Handsontable grid where the user will enter some values to insert them in the database. When he submits the grid, I want specifics cells to be "readOnly". In this case, I want the first column to be "readOnly".</p>
  
  <p>I use Ajax to send my data in my database. And in my callback function I want to edit the cells properties to "readOnly".</p>
  
  <p>So what I have for now is :</p>
  
  <pre><code>var cellProperties={};
      var i;
      for (var i = 0; i &lt; data_traitement.length; i++) {
  
          cellProperties.readOnly = true;
          return cellProperties;
      }
  </code></pre>
  
  <p>But the "cellProperties" option can only be used in the Handsontable definition. So I don't know what to use to do this.</p>
  
  <p>Can someone help me please ?</p>
  
  <p><strong>EDIT :</strong></p>
  
  <p>With the advice of ZekeDroid, I tried to modify my cells definition :
  So I've got this :</p>
  
  <pre><code>cells:function(row,col,prop){
      var cellProperties = {};
  
      if ([0].indexOf(row) !== -1 &amp;&amp; col &gt;= 0) 
      {
          cellProperties.readOnly = true;
      }
  
      if (readOnlyCells[[row,col]]) {
          cellProperties.readOnly = true;
      }
  
      return cellProperties;
      }
  </code></pre>
  
  <p>In my callback function, if I understood well, I have to change this <code>readOnlyCells</code> to <code>true</code>.</p>
  
  <p>So I made this :</p>
  
  <pre><code>for (var i = 0; i &lt; data_traitement.length; i++) {
          readOnlyCells[[i,0]] = true; //I'm not sure of this line
  
      }
      hot.render();
  </code></pre>