Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Luc on May 04, 2009 08:42
open dhtmlx forum
Open a node with a simple click on the label

Hello,
By default, we can open a node with a double click on the label.
Is it possible to do the same thing with a simple click ?
Thanks
Answer posted by Alex (support) on May 04, 2009 09:14

Hello, 

It is possible. You use openItem method to open item. This method can be called from onClick event handler:

tree.attachEvent("onClick",function(id){

if(tree.getOpenState(id)!=1) tree.openItem(id);

})