MVC4でKendoUIを使用しています。
空の文字列であるモデルプロパティにバインドされたDropDownListがあります。
@(Html.Kendo().DropDownListFor(model => model.AppUserStatus)
.Name("userStatusDropDownList")
.DataTextField("Text")
.HtmlAttributes(new {style = "width:100%;"})
.DataValueField("Value")
.BindTo(@ViewBag.StatusList))
model.AppUserStatusは、デフォルトでは空の文字列です。
ユーザーが新しいアイテムを選択するか、選択したアイテムをデフォルトアイテム(インデックス0)のままにしてフォームをポストバックした後、他のすべてのフィールドが正しくバインドされていても、model.AppUserStatusは空のままです。
[HttpPost]
[ValidateAntiForgeryToken]
public ActionResult Update(EditUserViewModel model)
{
model.AppUserStatus ***** IS Null always, all other fields are good
return View("EditUser", model);
}