Hi,
I am using a treeview to load data and on edit of a row, i would want to display a dropwon to choose data, i tried below to get the dropdown, but this does not give me a dropdown, please advise if this is possible or how to achieve this.
columns.Add().Field(e => e.InActive).Editor("StatusType").Width(100) ;
below is a partial view i added under the EditorTemplate folder
@model CodedValues
@(Html.Kendo().DropDownListFor(m => m)
.AutoBind(true)
.DataTextField("DisplayText")
.DataValueField("KeyText")
.DataSource(dataSource =>
{
dataSource.Read(read => read.Action("GetTypes", "my"))
.ServerFiltering(true);
})
)
@Html.ValidationMessageFor(m => m)
Thanks in advance.