-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
I tried to upgrade this sample to your latest version and replace the html editors with tag helpers, but failed with the first control in the _layout.cshtml page.
<kendo-dropdownlist
name="dimensions"
bind-to="@{new List<SelectListItem> { new SelectListItem { Text = "Default", Value = "common" }, new SelectListItem { Text = "Bootstrap", Value = "common-bootstrap" } }}"
datatextfield="Text"
datavaluefield="Value"
on-change="javascript:function() { window.kendoThemeChooser.changeCommon(this.value(), true);}">
</kendo-dropdownlist>
@*@(Html.Kendo().DropDownList()
.Name("dimensions")
.DataTextField("Text")
.DataValueField("Value")
.Value("common-bootstrap")
.Events(e => e.Change("function() { window.kendoThemeChooser.changeCommon(this.value(), true);}"))
.BindTo(new List<SelectListItem>() {
new SelectListItem() {
Text = "Default",
Value = "common"
},
new SelectListItem() {
Text = "Bootstrap",
Value = "common-bootstrap"
}
})
)*@
This will not generate the correct code and also states:
Element 'kendo-dropdownlist' cannot be nested inside element 'label'.
Metadata
Metadata
Assignees
Labels
No labels