dataItem

Returns the data item to which the specified table row is bound.

Parameters

row String|Element|jQuery

A string, DOM element or jQuery object which represents the table row. A string is treated as a jQuery selector.

Returns

kendo.data.TreeListModel the data item to which the specified table row is bound.

Example - get the data item to which the first table row is bound

<div id="treeList"></div>
<script>
    $("#treeList").kendoTreeList({
      columns: [
        { field: "name" },
        { field: "age" }
      ],
    dataSource: [
      { id: 1, parentId: null, name: "Jane Doe", age: 22, expanded: true },
      { id: 2, parentId: 1, name: "John Doe", age: 24 },
      { id: 3, parentId: 1, name: "Jenny Doe", age: 3 }
    ],
    });
    var treeList = $("#treeList").data("kendoTreeList");
    var data = treeList.dataItem("tbody>tr:eq(1)");
    console.log(data.age); // displays "22"
</script>
In this article
Not finding the help you need?