title: cannot read property 'closest' of undefined in kendo grid
body: <p>i'm currently set the data of the kendo grid A to kendo grid B. but i have a problem with <code>cannot read property 'closest' of undefined in kendo grid</code> </p>
  
  <p>please help me..</p>
  
  <p>this is the code of onclick by button of kendo B</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> $("#add-Resources").click(function () {
              var gridModal = $("#resourcesGrid").data("kendoGrid");
              var selectedItemModal = gridModal.dataItem(gridModal.select());
  
              var grid = $("#tblDelivery").data("kendoGrid");
              var dataItem = grid.dataItem(grid.current().closest("tr"));
              dataItem.set("Resource", selectedItemModal.Name);
              //alert(selectedItemModal.Name);
              $('#resources_modal').modal('toggle');
          });</code></pre>
  </div>
  </div>
  </p>