Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Nov 16, 2008 20:16
open dhtmlx forum
how to get the selected node lenght in the tree

HI
I have a query in the DHTML tree.
I wan to get the current selcted node number in the entire tree.
That is if i have 10 nodes in a tree and if i select 5th one of the same, is there any way to get the same.
Regards
Seshu
Answer posted by Support on Nov 17, 2008 03:39
You can use
      var count = mytree.getSelectedItemId().split(",").length;