Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get values of selected cells? #29

Open
datainvestor opened this issue Sep 30, 2021 · 1 comment
Open

How to get values of selected cells? #29

datainvestor opened this issue Sep 30, 2021 · 1 comment

Comments

@datainvestor
Copy link

I am having issues with how events working in vue-datagrid. Based on API and demos I have been trying to access event from beforeCellFocus method but not really working.
Here is my codesandbox:
https://codesandbox.io/s/revolist-forked-6c3j9?file=/src/App.vue

So basically I am trying to get values of all cells but instead using my approach I only get first one that got focused, so like from all the cells I can select only one is picked, which is not what I want. Any idea how to get all the cell values?

@alinoil
Copy link

alinoil commented Jun 30, 2022

There is now a .getSelectedRange() method which is not in the documentation but has been merged. It returns the coordinates of the currently selected range and then you can find the data from the your data-source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants