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

Dropdownlist change event

1 Answer 449 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 02 Apr 2012, 09:51 AM
Hi,

I'm currently working with a Dropdownlist and I'd like to access the change event via MVVM and fire an AJAX call whenever the value of the Dropdown changes.

Currently
data-bind="event: { change: changeEvent }"

does not work and says the binding is unsupported by the dropdown list. I've got changeEvent setup correctly in my MVVM. Do I need to setup a custom handler for this? In Knockout I could achieve the following result by using a computed observable, or adding a listener on the dropdown value observable.

Any suggestions on the Kendo way of achieving my goal?

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 02 Apr 2012, 12:19 PM
Hello Chris,

Our MVVM events binding is called events. Therefore, could you please change the event to events. 

Greetings,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
MVVM
Asked by
Chris
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or