[data grid] Full-featured CRUD not editing data retrieved from database #12382
Labels
component: data grid
This is the name of the generic UI component, not the React module!
feature: Editing
Related to the data grid Editing feature
support: question
Community support but can be turned into an improvement
Steps to reproduce
Link to live example: (required)
Steps:
Current behavior
When I hit the edit button, the row looks like it is editable but the row isn't actually in edit mode, so the save and delete icons don't show up.
As you can see, DataGrid does display the rows and columns correctly, it just doesn't understand that the row is in edit mode now.
Expected behavior
Once the edit button is hit, the Save and Delete icons should replace the Edit and Delete icons.
Context
The situation is that I don't know what the rows and columns are going to be until I retrieve those values from the database. What I expect is for fetch request to get those values and then perform a setState setting the rows and columns which invokes a re-render of the DOM (this part works btw). But then, the edit functionality should still work as if the rows and columns were hard coded or passed in as props.
Your environment
npx @mui/envinfo
These are the versions of mui I am using:
I am using Google Chrome for the browser.
Search keywords: React, Full-featured CRUD
The text was updated successfully, but these errors were encountered: