We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How I can hide a branch that does not have child?


working with angular wants to keep secret some of the branches that have no son, it is possible that not all the branches that do not have children, if not some

1 Reply

JS Jonesherine Stephen Syncfusion Team October 25, 2016 06:20 AM UTC

Hi Daniel, 
Thanks for contacting Syncfusion support. 
By using “ejDataManager”, we can filter the required parent records that having child records in it. 
Please find the code example below: 
<div id="angulartreegrid" ej-treegrid e-datasource="data" >                  
    <script>     
        var dataManager = ej.DataManager(projectData).executeLocal(ej.Query().where("subtasks", 
                  ej.FilterOperators.notEqual, null)); 
        angular.module('listCtrl', ['ejangular']) 
        .controller('TreeCtrl', function ($scope) { 
            $scope.data = dataManager;             
        });         
    </script> 
We have also prepared the sample for your reference. Please find the sample from below link. 
Please let us know if you require further assistance on this. 
Regards, 
Jone sherine P S 


Loader.
Up arrow icon