title: how to get selected row value in the KendoUI
body: <p>I have a kendoUI grid.</p>
  
  <pre><code>                @(Html.Kendo().Grid&lt;EntityVM&gt;()
                      .Name("EntitesGrid")
                                  .HtmlAttributes(new { style = "height:750px;width:100%;scrollbar-face-color: #eff7fc;" })
                      .Columns(columns =&gt;
                      {
                          columns.Bound(e =&gt; e.Id).Hidden().IncludeInMenu(false);
                          columns.Bound(e =&gt; e.EntityVersionId).Hidden().IncludeInMenu(false);
                          columns.Bound(e =&gt; e.Name).Width("70%").Title("Entity Name");
                          columns.Bound(e =&gt; e.EIN).Width("30%");
                      })
          .ToolBar(toolBar =&gt; toolBar.Template("&lt;a class='k-button k-button-icontext k-grid-add' id='addEntity'&gt;&lt;span class='k-icon k-add'&gt;&lt;/span&gt;Entity&lt;/a&gt;" +
               "&lt;a class='k-button k-button-icontext' id='editEntity'&gt;&lt;span class='k-icon k-edit'&gt;&lt;/span&gt;Edit&lt;/a&gt;"))
                      .DataSource(dataSource =&gt; dataSource
                      .Ajax().ServerOperation(false)
                      .Model(model =&gt; model.Id(e =&gt; e.Id))
                      .Read(read =&gt; read.Action("GetEntities", "Entity", new { projectId = Request.QueryString[DataKeyNameConstants.ProjectId] })))
                      .Sortable()
                      .Scrollable()
                      .Filterable()
                      .Resizable(resize =&gt; resize.Columns(true))
                      .Reorderable(reorder =&gt; reorder.Columns(true))
                      .ColumnMenu()
                      .Selectable(s =&gt; s.Mode(GridSelectionMode.Multiple))
                      .Events(events =&gt; events.Change("entSelChange"))
              )
  </code></pre>
  
  <p>now, I need to get the value of EntityVersionId from the selected Row.  but not sure how to do it.</p>
  
  <p>here's my javascript function</p>
  
  <pre><code>$("#editEntity").click(function () {
  
      var entityGrid = $("#EntitesGrid").data("kendoGrid");
  
      // what should I do from here
  });
  </code></pre>
  
  <p><strong>UPDATE: add code to loop all rows.</strong></p>
  
  <pre><code>function loadPreviousEntityVersion() {
  
      alert("sdfsdfsdf");
      var entityGrid = $("#EntitesGrid").data("kendoGrid");
      var data = entityGrid.dataSource.data();
  
      for(var i = 0; i&lt;data.length; i++) {
          var currentDataItem = data[i];
          alert(dataItem.EntityVersionId);
  
      }
  }
  </code></pre>