trigger

Executes all handlers attached to the given event. More info can be found in the trigger section of the kendo.Observable API reference.

Example

<div id="slider"></div>
<script>
$("#slider").kendoSlider({
    min: 0,
    max: 100,
    value: 50,
    change: function(e) {
        console.log("Slider value changed to: " + e.value);
    }
});

var widget = $("#slider").data("kendoSlider");

// Manually trigger the change event
widget.trigger("change", { value: widget.value() });

// Trigger custom event
widget.bind("customEvent", function(e) {
    console.log("Custom event triggered with data: " + e.data);
});
widget.trigger("customEvent", { data: "test data" });
</script>
In this article
trigger
Not finding the help you need?
Contact Support