Skip to content

Felt that there are too few events exposed #171

Answered by nick-keller
edzehoo asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @edzehoo,
We have such events, but on the grid itself: https://react-datasheet-grid.netlify.app/docs/api-reference/props#callbacks
For "onCellLeave" you might want to look at onActiveCellChange.
For "onCellDoneEditing" you might want to look at onBlur.
But that might not be what you are really looking for, check this out instead 👇

Now regarding the performance issue, you are absolutely right, but it is up to the component to call "onChange" when needed. Luckily the built-in text column has a continuousUpdates property that let you only update the data when blurred (huge performance gain).

Let me know if that helps!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@edzehoo
Comment options

Answer selected by nick-keller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants