Comments (3)
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?
from datagridxl2.
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)
from datagridxl2.
Will be fixed in v3. For v2, devs can listen to setselection
event.
from datagridxl2.
Related Issues (20)
- Bug: `hasStateChanged` does not return TRUE when `keepMultiSelection` is TRUE HOT 1
- v3: limit `resize` width for cellEditor when it exceeds viewport HOT 1
- v3: add to-ID step in undo/redo selector getState() and setState() HOT 1
- v3: fix canvas draw offset bug when freezeline is active HOT 1
- v3: setSortState/setFilterState: move viewport back to top HOT 1
- v3: Add `parseValue` methods to column type config HOT 1
- v3: moveViewportToIncludeCell does not update scroll position HOT 1
- dblclick cell sometimes erases cell value HOT 1
- draw fill handle HOT 1
- RENDERER Topic
- v3: show contextmenu + pickers in fullscreen mode
- v3: jump to fullscreen (resize) should recalculate scroll surface dimensions HOT 2
- v3: show sheet background at bottom HOT 1
- When selecting col (selectCol + addColRangeToSelection), base cellCursorPosition on viewport HOT 1
- drawViewportBackground is not called after resize HOT 1
- v3 moveViewportToIncludeCell broken when frozen pane HOT 1
- add `requiredBlankSpace` to lastPossibleRowView & lastPossibleColView
- v3: Only moveViewportToIncludeCell on key action? HOT 1
- v3: contextmenu options not working in fullscreen mode HOT 1
- v3: re-check pointer area after drawSortState/drawFilterState HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datagridxl2.