How to de-select upon re-clicking on same node

Hello,

To select a node we use the single clik on the text of a node. To de-select a CTRL-click on the text of the node works. But, is it possible to make the deselection work by clicking on the selected text again? How do I do this?

Thanks
Srinivas

Hi,

you may try the following:

tree.attachEvent("onClick",function(clickedItemId,selectedItemId){ if(clickedItemId == selectedItemId) this.clearSelection(clickedItemId); })