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
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);