我无法在Popup中查看DropDown,但我可以在Inline中查看。
这是我的代码
columns.ForeignKey(o => o.BreakingNewsTypeID, (System.Collections.IEnumerable)System.Web.HttpContext.Current.Application["BreakingNewsTypes"], "ID", "Description").Title("Type <!--<a href='javascript:onBreakingNewsTypes()'><span class='k-icon k-i-custom'></span></a>-->").EditorTemplateName("Alerts").HtmlAttributes(new { title = "Type" }).Width(130);
.Editable(editable => editable.Mode(GridEditMode.PopUp)
&#13;
Dropdown的模型是Alerts.cshtm
@using Kendo.Mvc.UI
@using System.Collections
@(Html.Kendo().DropDownListFor(m => m)
.BindTo((System.Collections.IEnumerable)System.Web.HttpContext.Current.Application["BreakingNewsTypes"])
//.OptionLabel("Select a value...")
.DataTextField("Description")
.DataValueField("ID")
.Events(e => e.Change("onBreakingTypeChange"))
)