Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by senthil on Feb 13, 2009 03:48
open dhtmlx forum
Ajax Tree context menu

I have problem in implementing the right click with context menu. In tree.attachEvent() ,which method should be used to perform right click option..I could not able to use the right click context menu effectively.. can you provide me sample which works fine for context menu with the XML file..

Answer posted by Alex (support) on Feb 13, 2009 06:02

There is onRightClick event. The handler gets ID of clicked item and event object as parameters.

The professional edition provides a ready implementation of dhtmlxMenu as context menu. The sample is dhtmlxTree/samples/context_menu/pro_menu.html ( http://dhtmlx.com/docs/products/dhtmlxTree/samples/context_menu/pro_menu.html ).