Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Steve Boulay on Jun 05, 2009 06:20
open dhtmlx forum
Only one node within a parent can be expanded at the same time

Hello,
It is possible that Only one node within a parent can be expanded at the same time

Thank you
Answer posted by Support on Jun 05, 2009 06:33
Can be achieved through onOpenStart event
In case of dhtmlxtree it will look as

tree.attachEvent("onOpenStart",function(id,state){
      if (state==-1) //opening
            tree.closeAllItems(0); //close all other branches
      return true;
})