title: Kendo Grid dynamic columns and update the batch Values
body: <p>I have dynamic column in Kendo Grid through dynamic datatable, Everything is fine, </p>
  
  <p>the problem is that, Kendo grid doesn't update the batch changing values in controller. plz look following, kindly help me.</p>
  
  <pre><code> @model System.Data.DataTable
  @(Html.Kendo().Grid&lt;dynamic&gt;()
      .Name("GridfilterHandler")
      .Columns(columns =&gt;
      {
          foreach (System.Data.DataColumn column in Model.Columns)
          {
              var c = columns.Bound(column.ColumnName).EditorTemplateName("gridColumn");
              if (column.ColumnName == "ShowCheck")
              {
                  columns.Template(@&lt;text&gt;&lt;/text&gt;).ClientTemplate("&lt;input type='checkbox' #= ShowCheck ? checked='checked':'' # class='chkbx' /&gt;")
                                               .HeaderTemplate("&lt;input type='checkbox' id='masterCheckBox' onclick='checkAll(this)'/&gt;").Width(200);
              }
          }
          columns.Command(cmd =&gt; cmd.Edit());
      })
  
      .Pageable()
      .Sortable()
       .ToolBar(toolbar =&gt;
         {
             toolbar.Save();
         })
       .Editable(ed =&gt; ed.Mode(GridEditMode.InCell))
     //  .Events(events =&gt; events.SaveChanges("onSaveChanges"))
      .Filterable()
      .Groupable()
      .DataSource(dataSource =&gt; dataSource
          .Ajax()
          .Model(model =&gt;
          {
              foreach (System.Data.DataColumn column in Model.Columns)
              {
                  model.Field(column.ColumnName, column.DataType);
              }
          })
          .Model(model =&gt;
              {
                  var id = Model.PrimaryKey[0].ColumnName;
                  model.Id(id);
                  foreach (System.Data.DataColumn column in Model.Columns)
                  {
                      model.Field(column.ColumnName, column.DataType);
                      // var field = model.Field(column.ColumnName, column.DataType);
                  }
              })
          .Batch(true)
          .Read(read =&gt; read.Action("readfilterHandlerGrid", "Customize", new { filterTitle = Request.QueryString["filterTitle"] }))
          .Update(update =&gt; update.Action("updatefilterHandlerGrid", "Customize"))
      )
  )
  
  public ActionResult updatefilterHandlerGrid([DataSourceRequest] DataSourceRequest request, IEnumerable&lt;dynamic&gt; items)      
          {...............
  }
  
  public ActionResult updatefilterHandlerGrid([DataSourceRequest] DataSourceRequest request, [Bind(Prefix = "models")] IEnumerable&lt;DataTable&gt; products)
  {.......................
  }
  </code></pre>
  
  <p>I have tried above update events, but i get null values.</p>