Why on earth is my html.kendo.dropdownlist showing the id of the field I've selected below the dropdown in a textbox.
.HtmlAttributes(new { style = "width:250px;" })
.Name("categories")
.Placeholder("Select category...")
.DataTextField("CategoryName")
.DataValueField("CategoryId")
.DataSource(source => {
source.Read(read => {
read.Action("GetCascadeIndustries", "Home");
});
})
)
I get the dropdown
[ >]
[ ] - and the field below it.
@(Html.Kendo().ComboBox()
.HtmlAttributes(new { style = "width:250px;" })
.Name("categories")
.Placeholder("Select category...")
.DataTextField("CategoryName")
.DataValueField("CategoryId")
.DataSource(source => {
source.Read(read => {
read.Action("GetCascadeIndustries", "Home");
});
})
)
I get the dropdown
[ >]
[ ] - and the field below it.