Actively (manually) focus a cell on spreadsheet

Tags: #<Tag:0x00007f8b1981a870> #<Tag:0x00007f8b1981a708>

Hi, everyone. I’m looking for a method that allow me to actively select a specific cell ( the same behavior when double clicking on this cell ).
Which I have tried:

  • I have browsered the documentation and internet but I couldn’t find it.
  • I tried to use DOM to select desire cell then dispatch the double click event on it, or the enter event.The event triggered, however, the cell wasn’t focused. I guess there are some underlying mechanisms which may not abivious to me prevent such behavior.
    So I really need some good advice, thanks you so much.

Hi @hungtv

Thank you for contacting us. Would that solution work for you? https://jsfiddle.net/handsoncode/6ryjnkd7/ When you select a desired cell, then you can click the button to open the editor.

1 Like

Thank you. That’s exactly what I’m looking for.

@hungtv

Thank you for the update. I’m glad that this solution was useful for you. I will close this topic now, but if you have any other questions, feel free to open a new one.