Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by MJ on Jun 01, 2009 23:55
open dhtmlx forum
Header Right Click

I want to use event after header is clicked by mouse right click.

Are there any function or solutions?

Help me please.
Answer posted by Support on Jun 02, 2009 02:28
There is no native event, but you can use code similar to next

dhtmlxEvent(mygrid.hdr,"click",function(e){
      var button = (e||event).button;
      if (button == 2)
           do_something();
})

where mygrid - reference to the grid object