-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
auto commit on lost focus when editing? #2414
Comments
Could you try |
I'd also suggest adding the |
@nstepien Hi - i dont know how to download the "react-data-grid": "7.0.0-canary.48" version. Im getting |
Can you try |
wow thanks for the quick response!. worked. |
Good luck! |
Sorry to be a pain. So im trying to resolve the first issue now - namely using the new CellActionsFormatter How do i import these into my project? I tried import ReactDataGrid, {CellActionsFormatter} from "react-data-grid"; |
This is just an example formatter, we don't bundle it as part of the |
Closing as the issue has been resolved. We can continue the discussion |
Hi, so when i allow users to edit fields they tab from column to column and the lost focus event fires which updates the cell value fine. However on the last box i'm having issues because people dont press enter on the last field (which would commit the change) but press the commit button ive added to the toolbar (to send changes to server)- result - the changes they made in last column are not saved.
So, how to force the automatic commit when moving to another control? is there some way to keep track of the active cell
code sample:. Here i have a class "customeditor" . i check the data type and if its timestamp call a datepicker otherwise use a simple input box. As you can see in the handleChange event im correctly calling the this.props.onCommit event every time the value changes and it works as long as i move the focus out of the editor but as above, if i click another control outside the editor/data grid then the commit is no happenning. whats bizaare is if the say type "123" then three handleChange events are fired so at worse i would expect the underlying cell value to contain the first 2 key presses but no it still contains the original value. So is the commit only happening after lost focus.
Any help on which event i need to track/replicate to force the commit would be VERY helpful.
The text was updated successfully, but these errors were encountered: