Cannot bind DropDownList in kendo grid. it works fine if it's not inside the grid. I try to use
@(Html.Kendo().DropDownList()
.Name("RegionId")
.OptionLabel("[|[Select...]|]")
.DataTextField("Name")
.DataValueField("Id")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("FindAll", "region")
.Data("filterRegion");
})
.ServerFiltering(true);
})
.HtmlAttributes(new { @required = "" })
.Enable(false)
.AutoBind(false)
.CascadeFrom("CountryId")
.ValuePrimitive(true).HtmlAttributes(new { @required = "" })
)
and its bind as a text box, not drop-down list. how to make it bind drop-down list? note: the values do not have a relation in a database I need to just columns and make it by code.
Grid
's edit template or something like that? Also provide current grid definition while necessary. - Tetsuya Yamamoto