Not able to get datasource for collapsed tree nodes in angularjs

46 Views Asked by At

I am unable to get full tree data when it is collapsed click here for Demo

1

There are 1 best solutions below

3
IamVenkatReddy On

Try below code:

$scope.getData = function () {
                $scope.updateddata = angular.copy($scope.treeData.options.data);

            }

you are using $scope.treeData.view(). It only gets the data that displays on the screen.

Dojo Example: Click here for Demo