This is a migrated thread and some comments may be shown as answers.

Cascading binding and tag helpers

2 Answers 247 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 29 Nov 2018, 05:25 PM

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. 

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 04 Dec 2018, 01:21 PM
Hello Andrew,

I have provided an answer in your other forum thread on the same topic. In order to prevent thread duplication, I would suggest to continue our communication there.

Regards,
Dimitar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Andrew
Top achievements
Rank 1
answered on 08 Dec 2018, 03:33 PM
Thanks that has solved it.
Tags
DropDownList
Asked by
Andrew
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or