<script>var dataSource =newkendo.data.HierarchicalDataSource({data:[{id:1,text:"Root",items:[{id:2,text:"Child"}]}]});
dataSource.read();var root = dataSource.get(1);/* The result can be observed in the DevTools(F12) console of the browser. */console.log(root.level());// outputs "0"
root.load();// Load child nodesvar child = dataSource.get(2);/* The result can be observed in the DevTools(F12) console of the browser. */console.log(child.level());// outputs "1"</script>