title: how to update cell based on another autocomplete cell with Handsontable
body: <p>i am already have complete code to return autocomplete data and fill another cell based on this autocomplete 
  but i want to make it dynamic from ajax request to database query.
  how to do this?</p>
  
  <p><a href="http://jsfiddle.net/wvXvJ/15/" rel="nofollow">http://jsfiddle.net/wvXvJ/15/</a></p>
  
  <pre><code>$(document).ready(function() {
  
          var $container  = $("#mytables");
          var comsources  = ["Chrysler", "Nissan", "Suzuki", "Toyota"];
  
          var ac = [
              {"name":"Chrysler","label":"Pepsi Cola Hat","price":"24","abbrev":"CRY"},
              {"name":"Nissan","label":"Candle Lights Dinner","price":"780","abbrev":"NSS"},
              {"name":"Suzuki","label":"Pork Meat Ball","price":"178","abbrev":"SZK"},
              {"name":"Toyota","label":"Granny Health Supplement","price":"24","abbrev":"TYT"}
          ];
  
          var ht = $container.handsontable({
              startRows: 1,
              startCols: 5,
              rowHeaders: true,
              colHeaders: ['Item Name', 'Price', 'Code'],
              minSpareRows: 1,
              contextMenu: true,
              columns: [
                  {
                      data: "name",
                      type: 'autocomplete',
                      source: comsources,
                      strict: false
                  },
                  {
                      data: "price"
                  },
                  { 
                      data: "code"
                  }
              ],
              afterChange : function(arr, op) {
                  if(op=="edit"&amp;&amp;arr.length==1) {
                      var value = arr[0][3];
                      for(var i=0;i&lt;ac.length;i++) {
                          if(ac[i].name == value) {
                              $container.handsontable("setDataAtCell", arr[0][0], 1, ac[i].price);
                              $container.handsontable("setDataAtCell", arr[0][0], 2, ac[i].abbrev);
                              return false;
                          }
                      }
                  }
              }
          });
      });
  </code></pre>