Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Guillaume on Nov 06, 2008 03:02
open dhtmlx forum
Number of childs in a tree

Hi,

how to know the number of childs in a tree? Can i use the _pullSize property of the tree ?

thanks
Answer posted by Support on Nov 06, 2008 03:42

There is no any ready to use property with such info. 
You can try to use 
   var count = tree.getAllSubItems(0).split(",").length;


Answer posted by Guillaume on Nov 06, 2008 10:19
thanks, i'll try it