Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Raj on Apr 29, 2008 07:01
open dhtmlx forum
How to get total number of nodes in a tree

Hi,

I am using dhtmlxtree in my application,
here I need to restrict the find functionality based on the total number of nodes in a tree,
so, Do we have any function to get the total number of nodes in tree?

/Thanks
Raj
Answer posted by Support team on Apr 29, 2008 07:59
There is no such method, but you can use

var count = tree.getAllSubItems(0).split(",").length;