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

Firing Events of control inside Kendo template

2 Answers 17 Views
Templates
This is a migrated thread and some comments may be shown as answers.
Sapandeep
Top achievements
Rank 1
Sapandeep asked on 06 Nov 2018, 03:16 PM

Hi,

in my case i have to implement cascading on 2 drop down boxes defined inside kendo ui Template . For example i have a category drop down box and on selection of category sub category drop down box gets  sub categories of selected categories shown as options. 

i couldn't find example in documentation for that. First , Is this possible?if so , could you please provide me syntax for that. Also i am using Kendo SPA example for 2 separate JS and Html files for code.

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Ivan Danchev
Telerik team
answered on 08 Nov 2018, 11:38 AM
Hi,

Here's an example of cascading DropDownList widgets nested in a Kendo UI template. Event handlers can be attached to the widgets through the data-bind attribute, as demonstrated with the "change" event below:
data-bind="source: categoriesDataSource, events: { change: onChange }"


Regards,
Ivan Danchev
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
Sapandeep
Top achievements
Rank 1
answered on 29 Nov 2018, 09:32 PM
Thanks Ivan. it fixed my issue. I was not declaring OnChange event inside ViewModel.
Tags
Templates
Asked by
Sapandeep
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Sapandeep
Top achievements
Rank 1
Share this question
or