-
-
Notifications
You must be signed in to change notification settings - Fork 305
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
Support updating rows in the data provider #3001
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A hugely critical improvement! 🥳
Is the case when the ID field isn't id
sufficient enough to handle before this lands? To me, it's okay for this to go and us to error gracefully
I'm correcting a bug in this PR where if the first row has |
Closes #2887
Adds support for an
updateRecords
property in the data provider. When this property exists, theconnected data grid will have a row edit button. After clicking save, the backendupdateRecords
method will be called with the updated values.Loading state is reflected in the save icon. error state is reflected in the same way as we do for row deletion: #2978
Screen.Recording.2023-12-15.at.17.41.41.mov
docs: https://deploy-preview-3001--mui-toolpad-docs.netlify.app/toolpad/concepts/data-providers/#row-editing
To Do: