title: Kendo grid - get current editing row
body: <p>How do you get the current row that's been edited even when it's not selected? I have a <code>batch</code> enabled Kendo grid that is <code>navigatable</code>. My goal is to manually edit data in a column using the <code>dataItem.set()</code> method. However, when you add a row it does not get selected automatically. Hence, <code>vm.testGrid.dataItem(vm.testGrid.select())</code> cannot be used.  </p>
  
  <p><code>vm.testGrid.dataSource.get(e.model.get("Id"))</code> gets the newly added row, but if multiple rows were added before saving, it will always get the first added row ("Id" is set to auto increment and is automatically generated by the database server, therefore all newly created rows will initially have 0 before saving).</p>
  
  <pre><code>vm.onEdit = function (e) {
      $('input.k-input.k-textbox').blur(function (f) {
          //var data = vm.testGrid.dataItem(vm.testGrid.select());
          var data = vm.testGrid.dataSource.get(e.model.get("Id")); // will always get the firstly added row
          data.set("LookupCol", "1000");
      }
  });
  </code></pre>
  
  <p>Is there a better solution to get the row that's been currently edited? Or is there a better way to edit the current row?</p>