Hi, I need to get the child nodes from easy ui tree. And that child nodes should only include the sub folders and not the leaf nodes. I had achieved this with the below code. But this might have performance issue due to the for loop if i have a huge tree. Hence i would like to know if there is any other way where we can get only the sub folders. Please help me resolve this. Code: var node = $('#tt').tree('getSelected'); var child_node = $('#tt').tree('getChildren', node.target); // This gives all the childs i.e folders and leaf nodes. var count = 0; for(var i=0; i< child_node.length; i++) { var child = $('#tt').tree('isLeaf', child_node.target); //Boolean - true if the child_node is leaf, else false if(!child) count = count + 1; // Increment count and get the count of Folders when leaf is false } alert('count' + count);