Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by imel on Sep 02, 2008 21:45
open dhtmlx forum
Show Context Menu in Grid with Left Click instead of Right Click

Hi all,

I am trying to use Context Menu in grid. I succeed to display the Context Menu when user do right click of a cell in a grid.
But what I really need is Context Menu will be displayed when user do left-click of mouse button.
Can I activate context menu for both of mouse clicks (left click and right click)..?

Thanks for your help.
Answer posted by Support on Sep 03, 2008 01:52
Can be done only by code modification.
dhtmlxgrid.js , line 1130

  if (ev.button == 2||(_isMacOS&&ev.ctrlKey)){

just remove check of ev. button or replace it with necessary one