I am using onSelectRow
in a jqGrid
, it executes as I wish when I click with the left mouse button. When I right-click, it STILL executes; I want right-click to have its normal function (popup menu including "inspect element").
I guess I can return out of onSelectRow
, but I need to be able to detect which mouse button was clicked. How can I do that? The event is not available to onSelectRow()
, unless in a way I haven't been able to find.
I am aware there is another handler for onRightClickRowEvent
, but I also read that the onSelectRow
function still executes, so that won't help me (I don't know who it would help).
I also read about disabling the right-click handler for the library; I regard that as really bad programming, but in fact it won't even meet requirements here to maintain the right-click menu.
(There is another question on this; it first says to disable right-click, then to re-implement the option menu handling. I'm sure there's something simpler enough that we should not consider the latter. The former does not handle my case, which included leaving the right-click menu popup the way it is).