one

Attaches a handler to an event. The handler is executed only once. Examples and more info can be found in the one section of the kendo.Observable API reference.

Example

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
    dataSource: [
        { id: 1, name: "John" },
        { id: 2, name: "Jane" }
    ],
    columns: [
        { field: "name", title: "Name" }
    ]
});

var widget = $("#grid").data("kendoGrid");
widget.one("dataBound", function(e) {
    console.log("Grid data bound - this handler will only execute once");
});

// Trigger data binding multiple times - handler only runs once
widget.dataSource.read();
widget.dataSource.read();
</script>
In this article
one
Not finding the help you need?
Contact Support