title: Kendo Grid AJAX Bound Not Updating MVC4
body: <p>I am trying to get my grid to update for the opt-in status, but when I hit update no action occurs. I an using ajax binding with a model and entity framework.  When I hit cancel it will follow this method. I am not sure what I am missing as everything else functions and compiles. </p>
  
  <p>View </p>
  
  <pre><code>&lt;div class="row"&gt;
  &lt;h2&gt;PQA Opt-In&lt;/h2&gt;
  
  &lt;br /&gt;
  
   @(Html.Kendo().Grid&lt;TelerikMvcApp1.Models.PQAViewModel&gt;()
      .Name("grid")
       .Columns(columns =&gt;
      {
          columns.Bound(opt =&gt; opt.Jobber).Width(90);
          columns.Bound(opt =&gt; opt.Dealer).Width(95);
          columns.Bound(opt =&gt; opt.OptInd).Width(110);
          columns.Bound(opt =&gt; opt.establish_date_time);
          columns.Bound(opt =&gt; opt.establish_id);
          columns.Command(commands =&gt;
              {
                  commands.Edit();
              }).Title("Commands").Width(200); 
         })
              .DataSource(datasource =&gt; datasource
                  .Ajax()
                  .Model(model =&gt;
                      {
                          model.Id(opt =&gt; opt.Jobber);
                          model.Field(opt =&gt; opt.Jobber).Editable(false); 
                          model.Field(opt =&gt; opt.Dealer).Editable(false);
                          model.Field(opt =&gt; opt.establish_date_time).Editable(false);
                          model.Field(opt =&gt; opt.establish_id).Editable(false);
                      })
                  .PageSize(20)
                  .Read(read =&gt; read.Action("ProductQualityFileFull_Read", "PQA"))
                  .Update(update =&gt; update.Action("Opt_Update", "PQA"))
                )
      .Editable(editable =&gt; editable.Mode(GridEditMode.InLine))
     .Filterable()
      .Pageable() 
   )  
  
  
  
    &lt;/div&gt;
  </code></pre>
  
  <p>Controller </p>
  
  <pre><code>sing System;
  using System.Linq;
  using System.Web.Mvc;
  using System.Data; 
  using System.Data.Entity; 
  using TelerikMvcApp1.Models;
  using Kendo.Mvc.UI;
  using Kendo.Mvc.Extensions;
  
   namespace TelerikMvcApp1.Controllers
  {
  public class PQAController : Controller
  {
  
      public ActionResult Baseline()
      {
          return View();
      }
  
      public ActionResult ProductQualityFileFull_Read([DataSourceRequest] DataSourceRequest  
   request)
      {
          using (var pqa = new PQAEntities())
          {
              IQueryable&lt;ProductQualityFileFull&gt; opt = pqa.ProductQualityFileFulls;
              DataSourceResult result = opt.ToDataSourceResult(request, ProductQualityFileFull =&gt; 
  new PQAViewModel
              {
                  Jobber = ProductQualityFileFull.Jobber,
                  Dealer = ProductQualityFileFull.Dealer,
                  OptInd = ProductQualityFileFull.OptInd,
                  establish_date_time = ProductQualityFileFull.establish_date_time,
                  establish_id = ProductQualityFileFull.establish_id
  
              });
              return Json(result);
          }
      }
  
      public ActionResult UpdateOptIn()
      {
  
          return View();
  
      }
  
  
  
      public ActionResult Opt_Update([DataSourceRequest] DataSourceRequest request, 
  PQAViewModel opt)
      {
          if (ModelState.IsValid)
          {
              using (var pqa = new PQAEntities())
              {
                  var entity = new ProductQualityFileFull
              {
                  Jobber = opt.Jobber,
                  Dealer = opt.Dealer,
                  OptInd = opt.OptInd,
                  establish_date_time = opt.establish_date_time,
                  establish_id = opt.establish_id
              };
  
                  pqa.ProductQualityFileFulls.Attach(entity);
  
                  pqa.Entry(entity).State = EntityState.Modified;
  
                  pqa.SaveChanges();
              }
          }
  
          return Json(new[] { opt }.ToDataSourceResult(request, ModelState));
  
      }
    }
  } 
  </code></pre>
  
  <p>Model </p>
  
  <pre><code>namespace TelerikMvcApp1.Models
  {
   public class PQAViewModel
   {
      public string Jobber { get; set; }
      public int Dealer { get; set; }
      public int OptInd { get; set; }
      public DateTime establish_date_time { get; set; }
      public string establish_id { get; set; }
   }
  }
  </code></pre>