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

Missing few changes returned by 'onCellsChanged' function #449

Open
SitesDeveloper23 opened this issue Oct 25, 2024 · 1 comment
Open

Missing few changes returned by 'onCellsChanged' function #449

SitesDeveloper23 opened this issue Oct 25, 2024 · 1 comment

Comments

@SitesDeveloper23
Copy link

Description
I am using ReactGrid component. It is accepting onCellsChanged prop that supposed to return all the changes of the cells with CellChange imterface .
However, when I am copying data from one row to another, it is not returning all the necessary changes especially custom-checkbox cells (we have used the same code that is mentioned in the library's github repo for checkbox - https://github.com/silevis/reactgrid/blob/develop/src/lib/CellTemplates/CheckboxCellTemplate.tsx).
But when we paste the same copied data to the same row for the second time, then it is returning all the data. Please check the attached screenshot for more clarity.

Current behavior
When we copied one row and try to paste it to another row, then onCellsChanged function is not returning all the data, but on second time paste, it is returning. Please check the screenshot attached. When I tried to paste the data for the first time, library is returning changes that is print in the console using 'changes' keyword. And notice the second time 'changes' printed in the console for the second time paste.

Expected behavior
onCellsChanged function should return all the cell changes for the first time.

Screenshots or gifs
image

Your environment details

  • Device: Desktop - React application
  • OS: Windows
  • Browser: Chrome
@webloopbox
Copy link
Contributor

@SitesDeveloper23 Could you please provide more details about your implementation? Specifically, it would be helpful to see a code snippet that demonstrates how you are defining cells.

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

3 participants
@webloopbox @SitesDeveloper23 and others