current

Gets or sets the current cell for keyboard navigation.

The method will also automatically scroll to the newly set current cell, but this feature works with limited capabilities when virtual scrolling is used. In the latter case, current will scroll correctly only if the new current cell is adjacent or close to the currently visible portion of the Grid's data table.

Parameters

cell jQuery

DOM element or jQuery object which represents the navigatable cell.

Returns

jQuery the current cell.

Example - select last cell for keyboard navigation

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
    columns: [
    { field: "name" },
    { field: "age" }
    ],
    dataSource: [
    { name: "Jane Doe", age: 30 },
    { name: "John Doe", age: 33 }
    ],
    navigatable: true
});
var grid = $("#grid").data("kendoGrid");

//get the last cell of the Grid
var lastCell = grid.tbody.find("tr:last td:last");
//select the cell for navigation
grid.current(lastCell);
//optional: focus the grid table
grid.table.focus();
</script>
In this article