Closed DataGridXL closed 11 months ago
Hi @DataGridXL !
I wanted to store the coordinates of the last selected cell. Is it somehow possible right now?
Also, what's the code for listening for events?
grid.events.on("setcellcursorposition", (e) => {
[...]
});
Something like this?
Hi @dj-kefir-siorbacz
Sorry for the late reply! Yes, listen to events like so:
var lastSelectedCell = null;
grid.events.on('setselection', function(gridEvent){
lastSelectedCell = gridEvent.cellCursorPosition;
});
Hope this helps! (Please open a new issue if you have futher questions)
Will be fixed in v3. For v2, devs can listen to setselection
event.
setcellcursorposition event does not fire