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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:





127073 Oct 24,2016 03:11 PM UTC Oct 25,2016 06:20 AM UTC JavaScript 1
Tags: ejTreeGrid
Asked On October 24, 2016 03:11 PM UTC

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 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" >                  
        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;             
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. 
Jone sherine P S 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon