Find the element that was rigth-cliked on context menu

Hello,

I am using a context Menu (on a grid).
And I am trying to find the original element which triggered the menu (ie the element that was right-clicked).

Anyone have an idea on how to find this information ?

Thanks,

Manu

Hello
You need to use event handler “onBeforeContexMenu”.
1th parameter - id - is the id of the clicked row
2th parameter - ind- is the index of the cell column
docs.dhtmlx.com/api__dhtmlxgrid_ … event.html

It works well.

Thank you !

You are welcome!