title: simple kendo grid implementation
body: <p>I am trying to implement Kendo Grid with HtmlHelper extension </p>
  
  <p>my controller class is 'Store', view is 'viewStores' and data I am trying to bind using method 'StoreRead'. I am using visual studio 2012, .net 4.5 with mvc 4 and razor...</p>
  
  <p>here is my code..</p>
  
  <pre><code>   public ActionResult viewStores()
  {
     //return View(GetStores());
      return View();
  }
  
  public ActionResult StoreRead([DataSourceRequest] DataSourceRequest request)
   {
      return Json(GetStores().ToDataSourceResult(request));
   }
  
  private static IEnumerable&lt;Store&gt; GetStores()
  {
      var db_store = new AppContext();
  
      return db_store.Stores.Select(store =&gt; new Store
      {
          storeID = store.storeID,
          address = store.address,
          postcode = store.postcode,
          city = store.city,
          Country = store.Country
      });
  
  }
  </code></pre>
  
  <p>view</p>
  
  <pre><code>@model KendoAspNetBundles.Models.Store
  
  &lt;h2&gt;viewStores&lt;/h2&gt;
  
  @(Html.Kendo().Grid&lt;KendoAspNetBundles.Models.Store&gt;()
    .Name("Grid")
    .Columns(columns =&gt;
  {
  columns.Bound(s =&gt; s.storeID);
  columns.Bound(s =&gt; s.address);
  columns.Bound(s =&gt; s.postcode);
  columns.Bound(s =&gt; s.city);
  columns.Bound(s =&gt; s.Country);
  })
   .DataSource(dataSource =&gt; dataSource
     .Ajax() 
     .Read(read =&gt; read.Action("StoreRead", "Store")) 
   )
  .Pageable()
   )
  </code></pre>
  
  <p>model</p>
  
  <pre><code> public class Store
   {
     public int storeID { get; set; }
     public string address { get; set; }
     public string postcode { get; set; }
     public string city { get; set; }
     public string Country { get; set; }
    }
  </code></pre>