Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Prasad on Aug 20, 2008 21:34
open dhtmlx forum
DHTMLX Tree Multiselection

I'm using a DHTMLX tree with multiselection;
The requirement is that all the selected nodes should be checked when they are selected or multiselected.
Is there any API function or any solution for this?
Answer posted on Aug 21, 2008 02:24
If you want to check all selected items, it can be done as 

var ids = tree.getSelectedItemId().split(",");
for (var i=0; i < ids.length; i++)
     tree.setCheck(ids[i],1);