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

Items

methods

Obtains an Array of the DOM elements, which correspond to the data items from the Kendo UI DataSource view (e.g. the ones on the current page).

Returns:Array

The currently rendered data table rows (<tr> elements).

<button id="selectAll">Select All Rows</button>
<div id="grid"></div>
<script>
  $("#grid").kendoGrid({
    columns: [
      { field: "name" },
      { field: "age" }
    ],
    dataSource: [
      { name: "Jane Doe", age: 30 },
      { name: "John Doe", age: 33 }
    ],
    selectable: "multiple, row"
  });

  $("#selectAll").on("click", function(){
    var grid = $("#grid").data("kendoGrid");
    var allRows = grid.items();

    grid.select(allRows);
  });
</script>
Not finding the help you need?
Contact Support