Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Velmurugant on Aug 24, 2009 23:11
open dhtmlx forum
Is it possible to count dragging items count in a tree?

Hi,
I would like to get count of dragging items in a tree. Is it possible? how to do that?

Thanks,
Vel
Answer posted by Alex (support) on Aug 25, 2009 03:28

Hello, 

you can use getSelectedItemId() to get list of selected items (dragging items):

var list;

tree.attachEvent("onDrag",function(){
  list = tree.getSelectedItemId();
  return true
})

...

var num =  list.split(",").length;