1var treeview = $("#treeview-kendo").data("kendoTreeView");
2
3// Here the id is from your treeview schema:
4
5// schema: { model: { id: 0, text: "Root" } }
6
7// If your treeview doesn't have a schema,
8// convert it to use a hierarchical datasource:
9// https://docs.telerik.com/kendo-ui/framework/datasource/hierarchical
10
11var nodeDataItem = treeview.dataSource.get(id);
12var node = treeview.findByUid(nodeDataItem.uid);
13
14treeview.select(node);