title: Kendo UI Grid Batch Save- Models Empty after post on server
body: <p>I'm trying to set up batch edit on a grid in Kendo like the sample on their demo site- <a href="http://demos.kendoui.com/web/grid/editing.html" rel="nofollow">http://demos.kendoui.com/web/grid/editing.html</a> .  Everything seems set up correctly and it's posting the data correctly (it would seem) from the grid to the server.  When I look at the post data in firebug it is all correct, but on the server when debugging the models sent back all contain null or empty string values.  The number of models is showing correctly in the .Count, but they are empty.  Here is my code and output, sorry I can't post images yet, not enough points on site yet:</p>
  
  <p>aspx page:</p>
  
  <pre><code>&lt;%: Html.Kendo().Grid&lt;Thread.Site.Models.ModelSummary&gt;()
              .Name("Grid")
              .Columns(columns =&gt;
              {
                  columns.Bound(m =&gt; m.ModelID).Hidden();
                  columns.Bound(m =&gt; m.ModelNumber).Width(100).ClientTemplate("#= (ModelNumber === 'null') ? ' ' : ModelNumber #");
                  columns.Bound(m =&gt; m.ModelName);
                  columns.Bound(m =&gt; m.Content).Width(160);
                  columns.Bound(m =&gt; m.Bullet1);
                  columns.Bound(m =&gt; m.Bullet2);
                  columns.Bound(m =&gt; m.Bullet3);
                  columns.Bound(m =&gt; m.Bullet4);
                  columns.Bound(m =&gt; m.Bullet5);
                  columns.Bound(m =&gt; m.Bullet6);
                  columns.Bound(m =&gt; m.AlertCount).ClientTemplate("# if (AlertCount &gt; 0) { # &lt;span class='icons icons-alert viewCheck' title='#= AlertCount # Alert(s)'&gt;&lt;/span&gt; #}#").Title("Attention");//"#= (AlertCount === 0) ? ' ' : AlertCount #").Title("Attention");//
              })
              .Pageable()
              .ToolBar(
                  toolbar =&gt; {toolbar.Save();}
              )
              .Editable(edit =&gt; { edit.Mode(Kendo.Mvc.UI.GridEditMode.InCell); })
              .Navigatable(n =&gt; { n.Enabled(true);})
              .Sortable()
              .Scrollable(s=&gt;s.Height(500)) 
              .Selectable(selectable =&gt; selectable.Mode(Kendo.Mvc.UI.GridSelectionMode.Single))
              .Filterable()
              .Events(events =&gt;
              {
                  events.DataBound("dataBound");
                  events.Edit("edit");
                  events.Change("change");
              })
              .DataSource(dataSource =&gt; dataSource
                  .Ajax()
                  .Batch(true)
                  .ServerOperation(false)
                  .PageSize(15)
                  .Events(events =&gt; events.Error("error_handler"))
                  .Model(model =&gt;
                  {
                      model.Id(j =&gt; j.ModelID);
                      model.Field(j =&gt; j.ModelID).Editable(false);
                      model.Field(j =&gt; j.ModelNumber).Editable(false);
                  })
                  .Read(read =&gt; read.Action("ModelList_Read", "Models", new { jobID = job.JobID }))
                  .Update(update =&gt; update.Action("ModelList_SaveAll", "Models").Type(HttpVerbs.Post))
              )
          %&gt;
  </code></pre>
  
  <p>controller:</p>
  
  <pre><code>[Authorize]
  [AcceptVerbs(HttpVerbs.Post)]
  public ActionResult ModelList_SaveAll([DataSourceRequest] DataSourceRequest request, [Bind(Prefix = "models")] IEnumerable&lt;Thread.Site.Models.ModelSummary&gt; modelSummary)
  {
      if (modelSummary != null)
      {
          foreach (Thread.Site.Models.ModelSummary _modelSummary in modelSummary)
          {
              ModelRepository.SetModelCopies(CurrentUser.ProfileID, modelCopiesSend);
          }
      }
      return Json(new[] { modelSummary }.ToDataSourceResult(request, ModelState), JsonRequestBehavior.AllowGet);
  }
  </code></pre>
  
  <p>Post Data Going to the Server:</p>
  
  <pre><code>models[0][ActiveFlag]   false
  models[0][AlertCount]   0
  models[0][Bullet1ID]    0
  models[0][Bullet1]      test bullet 1
  models[0][Bullet2ID]    0
  models[0][Bullet2]      test bullet 2
  models[0][Bullet3ID]    0
  models[0][Bullet3]  
  models[0][Bullet4ID]    0
  models[0][Bullet4]  
  models[0][Bullet5ID]    0
  models[0][Bullet5]  
  models[0][Bullet6ID]    0
  models[0][Bullet6]  
  models[0][CompanyID]    16
  models[0][Complete]     false
  models[0][ContentID]    0
  models[0][Content]      test description here
  </code></pre>
  
  <p>Debug model (_modelSummary in controller) on server, all data is empty or null:</p>
  
  <pre><code>modelSummary.Count = 1
  
  Bullet1 null    string
  Bullet1ID   0   int
  Bullet2 null    string
  Bullet2ID   0   int
  Bullet3 null    string
  Bullet3ID   0   int
  Bullet4 null    string
  Bullet4ID   0   int
  Bullet5 null    string
  Bullet5ID   0   int
  Bullet6 null    string
  Bullet6ID   0   int
  CompanyID   0   int
  </code></pre>
  
  <p>Thanks for any help on this.</p>