I am having some strange issue with cascading binding.
This code here does work:
<
kendo-dropdownlist
name
=
"Countries"
bind-to
=
"@(new SelectList(Model.Countries,"
Id","CountryName"))"></
kendo-dropdownlist
>
@(Html.Kendo().DropDownList()
.Name("DocumentTypes")
.DataTextField("Name")
.DataValueField("Id")
.BindTo(Model.GovIdTypes)
.CascadeFrom("Countries")
.CascadeFromField("IssuingCountry.Id")
)
But this one does not:
<
kendo-dropdownlist
name
=
"Countries"
bind-to
=
"@(new SelectList(Model.Countries,"
Id","CountryName"))"></
kendo-dropdownlist
>
<
kendo-dropdownlist
name
=
"DocumentTypes"
bind-to
=
"@(new SelectList(Model.GovIdTypes,"
Id","Name"))"
cascade-from
=
"Countries"
cascade-from-field
=
"IssuingCountry.Id"
></
kendo-dropdownlist
>
I don't know why I cannot se the tag helper here.
The first dropdown I got to work with tag helper but the second one not.