I would like to get the dataItem onExpand of the node. I am using AngularJs Kendo treeGrid<div kendo-tree-view="tree"
k-data-source="treeData"
k-template="itemTemplate"
k-on-expand="onExpand(selected, data, dataItem, columns)"></div>
<!-- angular module -->
angular.module("KendoDemos", [ "kendo.directives" ]);
function MyCtrl($scope) {
$scope.onExpand = function(selected, data, dataItem, columns) {
<!-- Here I would like to get the current dataItem. The dataItem as a parameter is coming as undefined. -->
alert('onExpand ' + e);
}
}
Here data-Item represents the current selected node dataSource value.
k-data-source="treeData"
k-template="itemTemplate"
k-on-expand="onExpand(selected, data, dataItem, columns)"></div>
<!-- angular module -->
angular.module("KendoDemos", [ "kendo.directives" ]);
function MyCtrl($scope) {
$scope.onExpand = function(selected, data, dataItem, columns) {
<!-- Here I would like to get the current dataItem. The dataItem as a parameter is coming as undefined. -->
alert('onExpand ' + e);
}
}
Here data-Item represents the current selected node dataSource value.