Categories | Question details Back To List | ||
Open node when click on the label Is it possible to open/close a node when clicking on the label of the node (and the image) instead on the + or - symbol. Thanks for your reply Answer posted by Support on Jan 09, 2009 08:20 Can be done as tree.attachEvent("onClick",function(id){ tree.openItem(id); }) Answer posted by Christophe on Jan 09, 2009 08:41 Thanks, it works great ! And if I want to close the opened item, how can I do ? Thanks in advance Christophe Answer posted by Support on Jan 09, 2009 10:08 Just a bit more of code tree.attachEvent("onClick",function(id){ if (tree.getOpenState(id)==1) tree.closeItem(id); else tree.openItem(id); }) |