Closed prakhargupta1 closed 1 year ago
Row deletion is currently possible by
datagrid.selectedRow
to a query parameterdisabled
property to !datagrid.selectedRow
)You'd then be able to delete a row by selecting it and clicking the button
We can avoid step 3. by implementing https://github.com/mui/mui-toolpad/issues/1184
Agreed, @Janpot - we can close these issues now since they relate to the former version of Toolpad
Ok, let's add it docs and then close it.
@prakhargupta1 Can we create a separate issue to document this (and editing rows/adding new rows based on the same pattern)?
About deleting a row, I couldn't make 1. work. Do I have to create a new query or the one that already brings data to the datagrid?
About deleting a row, I couldn't make 1. work. Do I have to create a new query or the one that already brings data to the datagrid?
You would have to create a query that deletes a row, right? How would you delete a row with the same query that fetches the rows?
Ok, got it. I guess this is the config:
I'll demo deleting a GitHub issue and then add it to docs.
Ok, got it. I guess this is the config:
I'll demo deleting a GitHub issue and then add it to docs.
I think you can also set it to be "Fetch only on manual action"
Duplicates
Latest version
Summary 💡
We should allow deleting a row. Ways we could do it:
Relates to #994