title: MVC Kendo Editable Grid not saving Enum value
body: <p>I am currently creating my first Kendo grid. Almost everything is working, except that my <code>Status</code> enum and <code>Code</code>(basically an id) is not being passed to my controller on the <code>Create</code> action.<br><br>
  Here is my Kendo Grid (the parts that matter) -<br></p>
  
  <pre><code>             @(Html.Kendo().Grid&lt;MyViewModel&gt;()
                  .Name("grid")
                  .AutoBind(false)
                  .HtmlAttributes(new { @class = "grid-clickable-edit" })
                  .Columns(columns =&gt;
                  {
                      columns.Command(command =&gt;
                      {
                          command.Edit().IconClass("fas fa-pencil").UpdateIconClass("fas fa-check").CancelIconClass("fas fa-ban");
                          command.Destroy().IconClass("fas fa-trash");
                      })
                          .ClientHeaderTemplate(Html.GridAddButton())
                          .Width(180);
                      //some fields
                      columns.Bound(model =&gt; model.Code)
                          .EditorTemplateName("GridDropdownEditor")
                          .EditorViewData(new {data = ViewBag.CodeList})
                          .ClientTemplate("#:Code#");
                      //some other fields
                      columns.Bound(model =&gt; model.StatusId)
                          .EditorTemplateName("StatusEditor");
                          .ClientTemplate("#:StatusName#");
                      //more fields
                  })
                  .Pageable(pg =&gt; pg.Numeric(false).PreviousNext(false))
                  .Sortable()
                  .Scrollable(scroll =&gt; scroll.Virtual(true))
                  .Filterable(x =&gt; x.Enabled(false))
                  .Editable(editable =&gt; editable.Mode(GridEditMode.InLine))
                  .DataSource(dataSource =&gt; dataSource
                      .Ajax()
                      .Batch(true)
                      .ServerOperation(true)
                      .Model(model =&gt; { model.Id(m =&gt; m.Id); })
                      .Read(...)
                      .Create(update =&gt; update.Action(...))
                      .Update(update =&gt; update.Action(...))
                      .Destroy(update =&gt; update.Action(...))
                  ))
  </code></pre>
  
  <p><br>
  The ViewBag.CodeList is a list of the Id of each Code, as well as the description. The dropdown basically shows the id and the description concatenated together. <br>
  <br>
  GridDropdownEditor - <br></p>
  
  <pre><code>@model object
  
  @(Html.Kendo().DropDownListFor(m =&gt; m)
              .DataTextField("Text")
              .DataValueField("Value")
              .BindTo((IEnumerable&lt;SelectListItem&gt;)ViewData["data"])
  )
  </code></pre>
  
  <p>StatusEditor - <br></p>
  
  <pre><code>@using MyProject.Data.Models
  @using MyProject.Helpers
  
  @(Html.Kendo().DropDownListFor(m =&gt; m)
      .DataTextField("Text")
      .DataValueField("Value")
      .BindTo(EnumHelper&lt;BidStatus&gt;.ToSelectList())
      )
      )
  </code></pre>
  
  <p>The <code>EnumHelper.ToSelectList()</code> method basically gets the String and Id value from my <code>Status</code> Enum, and then puts it in a <code>SelectList</code><br><br>
  Status Enum - </p>
  
  <pre><code>public enum Status
  {
      Status1 = 1,
      Status2 = 2,
      Status3 = 3
  }
  </code></pre>
  
  <p><br>
  MyViewModel(again, the parts that matter) -<br></p>
  
  <pre><code>public int? Code { get; set; }
  
  public Status? StatusId { get; set; }
  
  public string StatusName
  {
      get { return StatusId.ToString(); }
  }
  </code></pre>
  
  <p><br><br>
  The dropdowns for Status and Code get populated just fine, but they never actually get picked up by the grid and passed to the controller. FYI - The Code and Status fields have to be nullable. Let me know if any more info is required, and I would be happy to include it.</p>
  
  <p><strong>What I have tried</strong><br>
  I attempted using the solutions from here - <a href="https://stackoverflow.com/questions/31295395/kendo-mvc-grid-with-editable-enum-column">Kendo MVC grid with editable enum column</a>, which did not work for me.</p>