Search code examples
javascriptag-gridonrowclick

AG-GRID : Use of onRowClicked and onRowDoubleClicked at the same time


Can i use onRowClicked and onRowDoubleClicked at the same time in ag-grid, when i use them both, only onRowClicked is executed.


Solution

  • There is a serious problem with the implementation though...

    When you double click, the click event fires first and it tagged as a "click". So your click handler has no way to know that it's just part of a double click which will be handled elsewhere.

    Would have been far more useful if the click event was tagged as a double click. As it is, you have to use your own logic to delay handling the click until after you can determine if it's a double click or not.