title: how to get Kendo grid row selection
body: <p>How to enable kendo ui grid row selection .I created a kendo grid by using html helper function accessed it via javascript and enabled row selction ,but no luck code is shown below</p>
  
  <pre><code>@(Html.Kendo().Grid((IEnumerable&lt;Gridkendo.Models.Model&gt;)Model)
    .Name("grid")
    .Columns(columns =&gt;
    {
        // Create a column bound to the ProductID property
        columns.Bound(product =&gt; product.Name);
        // Create a column bound to the ProductName property
        columns.Bound(product =&gt; product.Description);
  </code></pre>
  
  <p>and accessed it in javascript</p>
  
  <pre><code>&lt;script&gt;
      $(function () {
          // Notice that the Name() of the grid is used to get its client-side instance
          var grid = $("#grid").data("kendoGrid");
          var selectedItem = grid.dataItem(grid.select());
          alert(selectedItem.ShipName);
      });
  &lt;/script&gt;
  </code></pre>