Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #104653
    Peter
    Participant

    Hi,

    I would like to know which event to use in order to catch the change of selected cell. I have tried to look at the “change” event which does fire, but from what I can tell, this event object doesn’t provide any information about the current (newly selected) cell.

    If I click a cell with the mouse it is easy, but when I navigate around in the grid with the arrow keys, there is no click event to look at.

    #104656
    ivanpeevski
    Participant

    Hi Peter,

     

    Inside of the ‘change’ event, you can use either grid.getSelectedCells() or grid.getSelection() to get the current selection.

    Here is an example: codepen

     

    Best Regards,
    Ivan Peevski

    Smart UI Team
    https://www.htmlelements.com/

    #104658
    Peter
    Participant

    Thank you, I will look into that.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.