Tree nodes are selecting by mouse right click


Hello,<?xml:namespace prefix = o ns = “urn:schemas-microsoft-com:office:office” /><o:p></o:p>



I am working on editable tree and trying to  add/delete nodes via context menus. <o:p></o:p>



<o:p></o:p>



<o:p></o:p>



Tree nodes are NOT selecting when I right click any node. So, user have to select the node by clicking mouse left button and need to perform right click for context menu. In the usability context - I am looking for node should be selected by right click also.<o:p></o:p>



Please let me know your thoughts.<o:p></o:p>



Thanks,<o:p></o:p>



RamaRao R.<o:p></o:p>


Hello,


you can try to use the following approach:


tree.attachEvent(“onBeforeContextMenu”,function(itemId){
this.selectItem(itemId,true,true)
return true
})