I am trying to have two javascript methods that get called when the change event on a DropDownList is raised. If I set it up like this:
@(Html.Kendo().DropDownListFor(m => m)
...
.Events(e => e.Change("Method1").Change("Method2"))
)
Then only Method2 is called. I can work around this a little bit by creating a third function, but then if I need the "this" variable from the event it looks like I have to pass it as a parameter to Method1 and Method2.
Is it possible to have multiple handlers registered for one event on a kendo control?
@(Html.Kendo().DropDownListFor(m => m)
...
.Events(e => e.Change("Method1").Change("Method2"))
)
Then only Method2 is called. I can work around this a little bit by creating a third function, but then if I need the "this" variable from the event it looks like I have to pass it as a parameter to Method1 and Method2.
Is it possible to have multiple handlers registered for one event on a kendo control?