Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by abhishek on Aug 28, 2009 03:16
open dhtmlx forum
how to get the count of total number of nodes in a tree ?

how to get the count of total number of nodes in a tree ?

I need this to dynamicallly create a unique id for the node
Answer posted by Alex (support) on Aug 28, 2009 03:50

Method getAllSubItems returns list of all child ids. So, you can use it get number of nodes in tree.

var list_of_ids = tree.getAllSubItems(0);