items

Obtains an array of the DOM elements which correspond to the data items from the view of the data source.

Example

<div id="treelist"></div>
<script>
  var treelist = $("#treelist").kendoTreeList({
    columns: [
      { field: "Name" },
      { field: "Position" }
    ],
    dataSource: [
      { id: 1, Name: "Daryl Sweeney", Position: "CEO", parentId: null },
      { id: 2, Name: "Guy Wooten", Position: "Chief Technical Officer", parentId: 1 }
    ]
  }).data("kendoTreeList");
  
  // Get all rendered items
  var items = treelist.items();
  console.log("Number of rendered items:", items.length);
</script>

Returns

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

In this article
items
Not finding the help you need?
Contact Support