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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

127073 Oct 24,2016 11:11 AM Oct 25,2016 02:20 AM JavaScript 1
loading
Tags: ejTreeGrid
Daniel
Asked On October 24, 2016 11:11 AM


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

Jonesherine Stephen [Syncfusion]
Replied On October 25, 2016 02:20 AM

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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;