ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

How to invoke inline-edit functionality using javascript/jquery?

Open sohamnotes opened this issue 8 years ago • 1 comments

Inline-edit functionality will be active when a user uses ui and double click on a grid cell. For some reason, I want to do that using javascript something like $('ele').trigger('dblclick');

Is it possible? If yes, how do I find id of the cell on mouseenter and trigger the double-click on that id so that it shows edit template.

sohamnotes avatar Mar 28 '18 08:03 sohamnotes

I don't recommend that you do this because I don't believe having a trigger like that on mouse enter is ever going to be performant, but you can try the following: http://plnkr.co/edit/mZcZATwzizqhax6E9ZKr?p=preview

I added a cellClass to the name column and ensured that attached an event to those cells that does what you are asking when mouse enter is triggered on those columns. See lines 33 and 100 - 107.

In the future, please use Stack Overflow or Gitter for questions.

mportuga avatar Mar 28 '18 20:03 mportuga