title: get Selected RowID kendo grid
body: <p>I want to get the edit row ID on Edit button click on kendo grid.</p>
  
  <p><img src="https://i.stack.imgur.com/8D42O.jpg" alt="enter image description here"></p>
  
  <p>When i click on the edit button i want to get "Document Type ID" which is shown in the grid and it has to be hidden in the original grid(primary key of datasource). I have shown it to clarify my issue.</p>
  
  <p>below event fires on edit click but I have not been able to get the ID of that particular row.</p>
  
  <pre><code>$("#grid").data("kendoGrid").bind("edit", function (e) {
  
              var grid = $("#grid").data("kendoGrid");
  
  
          });
  
  @(Html.Kendo().Grid((IEnumerable&lt;Doc.Web.Models.Common.DocumentTypeModel&gt;)Model.lst_DocumentType)    
      .Name("grid")
      .Columns(columns =&gt;
      {
  
          columns.Bound(o =&gt; o.DocumentTypeID).Visible(false);
          columns.Bound(o =&gt; o.DocumentType).Title("Document Type");
          columns.Bound(o =&gt; o.DocumentTypeDescription).Title("Description");
  
          columns.Command(command =&gt; { command.Edit(); command.Destroy(); }).Width(182);
      })
      .ToolBar(toolbar =&gt; toolbar.Create())
      .Editable(editable =&gt; editable.Mode(GridEditMode.InLine))//.TemplateName("DocumentType_template"))    
      .Pageable()
      .Sortable()
      .Filterable()
      .DataSource(dataSource =&gt; dataSource
          .Ajax()
          .PageSize(20)
          .Events(events =&gt; events.Error("error_handler"))
          .Model(model =&gt; model.Id(p =&gt; p.DocumentTypeID))
          .Create(update =&gt; update.Action("EditingInline_Create", "DocumentType").Data("additionalInfo"))
          .Read(read =&gt; read.Action("EditingInline_Read", "DocumentType").Data("additionalInfo"))
          .Update(update =&gt; update.Action("EditingInline_Update", "DocumentType").Data("additionalInfo"))
          .Destroy(update =&gt; update.Action("EditingInline_Destroy", "DocumentType").Data("additionalInfo"))
  
      )
  )
  </code></pre>