bind

Attaches a handler to an event. For more information and examples, refer to the bind API reference.

Example - subscribe to an event

<script>
var observable = new kendo.data.ObservableObject({ name: "John Doe" });
observable.bind("change", function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log(e.field); // will output the changed field once the event is raised
});
observable.set("name", "Jane Doe"); // raises the "change" event and the handler outputs "name"
</script>
In this article