Skip to content

Attempted upgrade to 2018.1.226 #2

@Allann

Description

@Allann

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions