Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/87.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 我正在尝试在网格中显示dropdownlist?_Html_Css - Fatal编程技术网

Html 我正在尝试在网格中显示dropdownlist?

Html 我正在尝试在网格中显示dropdownlist?,html,css,Html,Css,我试图在网格中显示下拉列表,但单击下拉列表时不会显示该下拉列表。我看到的不是对应于数字“值”(枚举)的下拉列表的“文本”,而是应该显示dropdownlist的“文本框”。另一个奇怪的行为发生在我随机点击网格时,下拉列表将间歇性出现。它对您有效 @(Html.Kendo().Grid()) .名称(“网格”) .栏目( 列=> { column.Bound(e=>e.LanguageName).Title(“语言名称”); column.Bound(e=>e.CountryName).Title

我试图在网格中显示下拉列表,但单击下拉列表时不会显示该下拉列表。我看到的不是对应于数字“值”(枚举)的下拉列表的“文本”,而是应该显示dropdownlist的“文本框”。另一个奇怪的行为发生在我随机点击网格时,下拉列表将间歇性出现。

它对您有效 @(Html.Kendo().Grid()) .名称(“网格”) .栏目( 列=> { column.Bound(e=>e.LanguageName).Title(“语言名称”); column.Bound(e=>e.CountryName).Title(“语言名”); column.Bound(e=>e.CountryID).ClientTemplate(


最低限度的非工作代码样本将是好的
                  @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))



                      )
    )