title: Kendo Grid Custom Add Popup, Value in Controller Post Action is null
body: <p>I'm having an issue with the Kendo Grid using a template add/edit. The object (ContactEmail) in the post for add/edit is null and I'm unable to figure out why, ContactID has a value. I've looked at responses to similar issues on KendoUI Forums &amp; here but haven't found any that fix my issue.</p>
  
  <p>Even without the template it doesn't work, so it appears to not be an issue with my custom template. There is also no validation so I don't understand why it wouldn't be going through. The Email is basically just a copy of the Phone, just changed to use the Email object.</p>
  
  <p>I have 2 Kendo Grids on my View, which below is a snippet of them. Only the Email is having issues:</p>
  
  <pre><code>@model DORIS.POCO.Contact
  &lt;div id="phones"&gt;
    &lt;h4&gt;Phones&lt;/h4&gt;
    &lt;div id="phoneGrid" style="width:500px"&gt;
      @(Html.Kendo().Grid&lt;DORIS.POCO.ContactPhone&gt;()
          .Name("kendoContactPhones")
          .Columns(columns =&gt;
          {
              columns.Bound(m =&gt; m.Number).Title("Phone").ClientTemplate("#= getFormattedPhone(Number) #");
              columns.Bound(m =&gt; m.Category).Title("Type");
              columns.Bound(m =&gt; m.DescriptionOf).Title("Description");
              columns.Bound(m =&gt; m.PrimaryPhone).Title("Primary").ClientTemplate("&lt;input type='checkbox' disabled='true' #= PrimaryPhone ? checked='checked' :'' # /&gt;");
          })
          .Sortable()
          .Selectable(s =&gt; s
              .Mode(GridSelectionMode.Single)
              .Type(GridSelectionType.Row)
          )
          .DataSource(d =&gt; d
              .Ajax()
              .Model(model =&gt; model.Id(m =&gt; m.PhoneID))
              .Read(read =&gt; read.Action("GetContactPhones", "ContactPhones", new{ id = Model.ContactID }))
              .Create(create =&gt; create.Action("KendoPhoneAdd", "ContactPhones", new{ id = Model.ContactID }))
              .Update(update =&gt; update.Action("KendoPhoneEdit", "ContactPhones"))
              .Destroy(destroy =&gt; destroy.Action("KendoPhoneDelete", "ContactPhones"))
              .Sort(s =&gt; s.Add(m =&gt; m.PrimaryPhone).Descending())
          )
          .AutoBind(true)
          .ToolBar(toolBar =&gt; toolBar.Template("&lt;a id='addPhone' class='k-button k-button-icontext k-grid-add'&gt;&lt;span class='k-icon k-add'&gt;&lt;/span&gt;Add&lt;/a&gt;&lt;a id='editPhone' class='k-button k-button-icontext k-grid-edit'&gt;&lt;span class='k-icon k-edit'&gt;&lt;/span&gt;Edit&lt;/a&gt;&lt;a id='deletePhone' class='k-button k-button-icontext k-grid-delete'&gt;&lt;span class='k-icon k-delete'&gt;&lt;/span&gt;Delete&lt;/a&gt;"))
          .Editable(e =&gt; e.Mode(GridEditMode.PopUp).TemplateName("ContactPhone").Window(w =&gt; w.Title("Manage Phone")))
          .Events(e =&gt; e.DataBound("toggleBacktoTopButton"))
      )
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div id="emails&gt;"&gt;
    &lt;h4&gt;Email&lt;/h4&gt;
    &lt;div id="emailGrid" style="width:500px"&gt;
      @(Html.Kendo().Grid&lt;DORIS.POCO.ContactEmail&gt;()
          .Name("kendoContactEmails")
          .Columns(columns =&gt;
          {
              columns.Bound(m =&gt; m.Email).Title("Email");
              columns.Bound(m =&gt; m.DescriptionOf).Title("Description");
              columns.Bound(m =&gt; m.PrimaryEmail).Title("Primary").ClientTemplate("&lt;input type='checkbox' disabled='true' #= PrimaryEmail ? checked='checked' :'' # /&gt;");
          })
          .Sortable()
          .Selectable(s =&gt; s
              .Mode(GridSelectionMode.Single)
              .Type(GridSelectionType.Row)
          )
          .DataSource(d =&gt; d
              .Ajax()
              .Model(model =&gt; model.Id(m =&gt; m.EmailID))
              .Read(read =&gt; read.Action("GetContactEmails", "ContactEmails", new{ id = Model.ContactID }))
              .Create(create =&gt; create.Action("KendoEmailAdd", "ContactEmails", new{ id = Model.ContactID }))
              .Update(update =&gt; update.Action("KendoEmailEdit", "ContactEmails"))
              .Destroy(destroy =&gt; destroy.Action("KendoEmailDelete", "ContactEmails"))
              .Sort(s =&gt; s.Add(m =&gt; m.PrimaryEmail).Descending())
          )
          .AutoBind(true)
          .ToolBar(toolBar =&gt; toolBar.Template("&lt;a id='addEmail' class='k-button k-button-icontext k-grid-add'&gt;&lt;span class='k-icon k-add'&gt;&lt;/span&gt;Add&lt;/a&gt;&lt;a id='editEmail' class='k-button k-button-icontext k-grid-edit'&gt;&lt;span class='k-icon k-edit'&gt;&lt;/span&gt;Edit&lt;/a&gt;&lt;a id='deleteEmail' class='k-button k-button-icontext k-grid-delete'&gt;&lt;span class='k-icon k-delete'&gt;&lt;/span&gt;Delete&lt;/a&gt;"))
          .Editable(e =&gt; e.Mode(GridEditMode.PopUp).TemplateName("ContactEmail").Window(w =&gt; w.Title("Manage Email")))
          .Events(e =&gt; e.DataBound("toggleBacktoTopButton"))
      )
    &lt;/div&gt;
  </code></pre>
  
  <p>Below is the code for my ContactEmailsController, the Add Post method only:</p>
  
  <pre><code>[AcceptVerbs(HttpVerbs.Post)]
  public ActionResult KendoEmailAdd([DataSourceRequest] DataSourceRequest request, ContactEmail email, int id)
  {
    if (email != null)
    {
      ContactEmail newEmail = new ContactEmail();
  
      newEmail.DescriptionOf = email.DescriptionOf;
      newEmail.Email = email.Email;
      newEmail.EntityID = id;
      newEmail.PrimaryEmail = email.PrimaryEmail;
  
      db.ContactEmails.Add(newEmail);
      db.SaveChanges();
    }
  
    return Json(new[] { email }.ToDataSourceResult(request, ModelState));
  }
  </code></pre>
  
  <p>This is my ContactEmail Class:</p>
  
  <pre><code>public partial class ContactEmail
  {
      public int EmailID { get; set; }
      public int EntityID { get; set; }
      public string Email { get; set; }
      public string DescriptionOf { get; set; }
      public bool PrimaryEmail { get; set; }
  
      public virtual Contact Contact { get; set; }
  }
  </code></pre>
  
  <p>And finally, this is my editor template for ContactEmail:</p>
  
  <pre><code>@model DORIS.POCO.ContactEmail
  
  @Html.HiddenFor(m =&gt; m.EmailID)
  @Html.HiddenFor(m =&gt; m.EntityID)
  
  &lt;div class="editor-label"&gt;
    @Html.LabelFor(m =&gt; m.Email)
  &lt;/div&gt;
  &lt;div class="editor-field"&gt;
    @Html.EditorFor(m =&gt; m.Email )
    @Html.ValidationMessageFor(m =&gt; m.Email)
  &lt;/div&gt;
  
  &lt;div class="editor-label"&gt;
    @Html.Label("Description")
  &lt;/div&gt;
  &lt;div class="editor-field"&gt;
    @Html.EditorFor(m =&gt; m.DescriptionOf)
    @Html.ValidationMessageFor(m =&gt; m.DescriptionOf)
  &lt;/div&gt;
  
  &lt;div class="editor-label"&gt;
    @Html.Label("Primary Email")
  &lt;/div&gt;
  &lt;div class="editor-field"&gt;
    @Html.CheckBoxFor(m =&gt; m.PrimaryEmail)
    @Html.ValidationMessageFor(m =&gt; m.PrimaryEmail)
  &lt;/div&gt;
  </code></pre>
  
  <p>I've been looking at this for quite a while including searching the internet for solutions. Maybe I'm looking too hard and the answer is super simple.</p>
  
  <p>I believe I have included all the code related to this issue, however if you think I missed something let me know and I'll add it.</p>
  
  <p>Thanks! Any assistance is much appreciated!</p>