Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Dilpreet Singh on Jul 01, 2009 08:38
open dhtmlx forum
ContextMenu on Accordion cell Header

Hi,

I need to give a link on cell header of the accordion. On the link I need to provide a dhtmlx context menu. Please let me know how is this possible?


Thanks,
Dilpreet Singh
Answer posted by Alex (support) on Jul 01, 2009 09:14

hello,

accordion header has own onclick handler. So, bubbling of link onclick must be canceled:

...<a onclick="(event||arguments[0]).cancelBubble = true; .....">open menu</a>...

In order to show context in a certain position you can use showContextMenu(x,y) method.