trigger

Executes all handlers attached to the given event.

Parameters

eventName String

The name of the event to trigger.

eventData Object

Optional event data which will be passed as an argument to the event handlers.

Example - trigger an event

<script>
var obj = new kendo.Observable();
obj.bind("myevent", function(e) {
    console.log(e.data); // outputs "data"
});
obj.trigger("myevent", { data: "data" });
</script>
In this article
Not finding the help you need? Improve this article