Html 我正在尝试在网格中显示dropdownlist?
我试图在网格中显示下拉列表,但单击下拉列表时不会显示该下拉列表。我看到的不是对应于数字“值”(枚举)的下拉列表的“文本”,而是应该显示dropdownlist的“文本框”。另一个奇怪的行为发生在我随机点击网格时,下拉列表将间歇性出现。它对您有效 @(Html.Kendo().Grid()) .名称(“网格”) .栏目( 列=> { column.Bound(e=>e.LanguageName).Title(“语言名称”); column.Bound(e=>e.CountryName).Title(“语言名”); column.Bound(e=>e.CountryID).ClientTemplate(Html 我正在尝试在网格中显示dropdownlist?,html,css,Html,Css,我试图在网格中显示下拉列表,但单击下拉列表时不会显示该下拉列表。我看到的不是对应于数字“值”(枚举)的下拉列表的“文本”,而是应该显示dropdownlist的“文本框”。另一个奇怪的行为发生在我随机点击网格时,下拉列表将间歇性出现。它对您有效 @(Html.Kendo().Grid()) .名称(“网格”) .栏目( 列=> { column.Bound(e=>e.LanguageName).Title(“语言名称”); column.Bound(e=>e.CountryName).Title
最低限度的非工作代码样本将是好的
@Html.DropDownListFor(model => model.CountryID, new SelectList(ViewBag.Country,"text","value"), "--- Select ---", new { @class = "form-control dropdownErp" }).ToString()).Title("Country Name");
}
)
.Editable(editable => editable.Mode(GridEditMode.InCell))
.DataSource(dataSource => dataSource
.Ajax()
.Batch(true)
.ServerOperation(true)
.Model(model =>
{
model.Id(p => p.ID);
})
.Read(read => read.Action("Getdata", "Language").Type(HttpVerbs.Get))
)
)