New to Kendo UI for jQuery? Start a free 30-day trial

CloseCell

methods

Stops editing the table cell which is in edit mode. Requires "incell" edit mode.

When keyboard navigation is used, the Grid table must be focused programmatically after calling closeCell.

<div id="grid"></div>

<script>
$("#grid").kendoGrid({
    columns: [
        { field: "name" },
        { field: "age" }
    ],
    dataSource: [
        { name: "Jane Doe", age: 30 },
        { name: "John Doe", age: 33 },
    ],
    editable: "incell",
    navigatable: true
});

var grid = $("#grid").data("kendoGrid");

grid.editCell(grid.tbody.find("td").first());
setTimeout(function(){
    grid.closeCell();
    grid.table.focus();
}, 1500);
</script>
Not finding the help you need?
Contact Support