Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by RamaRao R on Jan 13, 2010 04:14
open dhtmlx forum
Tree nodes are selecting by mouse right click

Hello,

I am working on editable tree and trying to  add/delete nodes via context menus.

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.

Please let me know your thoughts.

Thanks,

RamaRao R.

Answer posted by Alex (support) on Jan 13, 2010 06:43

Hello,

you can try to use the following approach:

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