title: Handsontable, how to insert row with data?
body: <p><strong>Screenshot:</strong> </p>
  
  <p><a href="https://i.stack.imgur.com/8ED9m.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8ED9m.png" alt="enter image description here"></a></p>
  
  <p><strong>Two Puzzles:</strong></p>
  
  <p><strong>One:</strong> I want to insert row with data.</p>
  
  <p><strong>Two:</strong> This data based on selected row's data,and I want to modify it with AJAX request response.Then insert it.</p>
  
  <p>I read handsontable's docs, can't find suitable event</p>
  
  <p>I found this method, but I do not know how to implement it</p>
  
  <pre><code>var container = document.getElementById('table');
  var hot = new Handsontable(container, {
    data: gridata,//Table's data
    rowHeaders: true,
    stretchH: 'all',
    fixedColumnsLeft: 2,
    contextMenu: true
  });
  var indexArr = hot.getSelected();//get selected row's index
  var selectedData = hot.getDataAtRow(indexArr[0]);//selected row's data
  //then insert it
  </code></pre>