在弹出编辑中,下拉列表无法正常工作-Kendo UI

时间:2017-02-07 05:13:51

标签: asp.net kendo-ui kendo-grid kendo-asp.net-mvc

我无法在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;
&#13;
&#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"))

)

0 个答案:

没有答案