change

Fires when the ListBox selection has changed.

The function context of the event handler (available through the this keyword) that will be set to the widget instance.

Example

<select id="listBox"></select>
<script>
$("#listBox").kendoListBox({
    dataSource: [ "John Doe" ],
    change: function() {
        // handle event
    }
 });
 </script>

To set after initialization

<select id="listBox"></select>
<script>
$("#listBox").kendoListBox({
    dataSource: [ "John Doe" ]
});
// get a reference to the list box
var listBox = $("#listBox").data("kendoListBox");
// bind to the change event
listBox.bind("change", function(e) {
    // handle event
});
</script>
In this article
Not finding the help you need? Improve this article