title: Kendo Grid: Foreign Key Dropdown does not update grid cell after update
body: <p>I have a Kendo MVC grid that contains a nullable property (short) that is bound as a foreign key and uses a dropdown list as an editor template. I am also using inline editing.</p>
  
  <p>When the property value is null, the dropdown list selected value does not get set into the grid cell after the update button is clicked. This works fine if incell editing is used. I am looking for a workaround that will solve my problem. I am including a stripped down version of my code below</p>
  
  <p>Everything works if the nullable value is set to a non-null value.</p>
  
  <p><strong>GRID</strong></p>
  
  <pre><code>@(Html.Kendo().Grid&lt;AssetViewModel&gt;()
     .Name("DealAssets")
     .Columns(c =&gt;
     {
        c.Bound(x =&gt; x.Name);
        c.ForeignKey(x =&gt; x.AssetTypeID, (IEnumerable&lt;SelectListItem&gt;)ViewBag.AssetTypeList, "Value", "Text");
        c.ForeignKey(x =&gt; x.SeniorityTypeID, seniorityTypeList, "Value", "Text").EditorTemplateName("GridNullableForeignKey");
        c.ForeignKey(x =&gt; x.RateBaseID, rateBaseList, "Value", "Text").EditorTemplateName("GridNullableForeignKey"); ;
        c.Command(m =&gt; { m.Edit(); m.Destroy(); });
     })
     .ToolBar(toolbar =&gt; toolbar.Create().Text("Add New Asset"))
     .Editable(x =&gt; x.Mode(GridEditMode.InLine))
     .DataSource(ds =&gt; ds
        .Ajax()
        .Model(model =&gt; model.Id(request =&gt; request.ID))
        .Read(read =&gt; read.Action("ReadAssets", "Deal", new { id = Model.ID }))
        .Create(create =&gt; create.Action("CreateAsset", "Deal", new { currentDealID = Model.ID }))
        .Update(update =&gt; update.Action("UpdateAsset", "Deal"))
        .Destroy(destroy =&gt; destroy.Action("DeleteAsset", "Deal"))
     )
  )
  </code></pre>
  
  <p><strong>EDITOR TEMPLATE</strong></p>
  
  <pre><code>@model short?
  @{
     var controlName = ViewData.TemplateInfo.GetFullHtmlFieldName("");
  }
  @(
     Html.Kendo().DropDownListFor(m =&gt; m)
        .Name(controlName)
        .OptionLabel("- Please select -")
        .BindTo((SelectList)ViewData[ViewData.TemplateInfo.GetFullHtmlFieldName("") + "_Data"])
  )
  </code></pre>
  
  <p><strong>UPDATE ACTION</strong></p>
  
  <pre><code>public ActionResult UpdateAsset([DataSourceRequest] DataSourceRequest request, int ID)
  {
     var dealAsset = DataContext.DealAssets.SingleOrDefault(o =&gt; o.ID == ID);
     if (dealAsset != null)
     {
        if (TryUpdateModel(dealAsset.Asset, new[] {"Name","AssetTypeID","SeniorityTypeID","RateBaseID" }))
        {
           DataContext.SaveChanges();
        }
     }
     return Json(new[] { new AssetViewModel(dealAsset) }.ToDataSourceResult(request, ModelState), JsonRequestBehavior.AllowGet);
  }
  </code></pre>