Comments (10)
Hey @cherniavskii, thanks a lot for that. I managed to get the implementation I wanted through the help of your demo. Let me know if there's a more elegant solution to this though π https://stackblitz.com/edit/react-u9chwq-ypaysx?file=Demo.tsx
from mui-x.
I am not sure I do understand you requirement.
From what I understood setting the editMode to 'row'
would be what you want.
If you need 'non-editable' cells you can just disable that in the column definitions, or by using the isCellEditable
method. That one is highly customizable to fit your specific needs as well.
Exmaple:
const isCellEditable = (params: GridCellParams) => {
if (params.field === 'age' && params.value < 25) {
return false;
}
return true;
};
from mui-x.
Essentially I have a cell where I can enter a code, and from that code I fetch data and set column data onProcessRowUpdate. This works as I expect since itβs in cell edit mode. However, in row edit mode, the fetch data will only populate once I exit out of editing the WHOLE row, rather than that specific cell.
So if I were to be able to get the tabbing functionality of row edit mode, but all the processes handle the same way as cell edit mode, this would be ideal.
from mui-x.
Oh, that's an interesting use case. @romgrk is it possible to update cell values "mid-edit"?
from mui-x.
I don't think so, that's a new feature or change we'd need to make.
How about we add a processCellUpdate
callback to complement processRowUpdate
?
@mui/xgrid Thoughts?
from mui-x.
Sounds like a good idea, but how can that help with this specific use case?
He would still need to exit edit mode, update and then re-enter edit mode if i understood that correctly
from mui-x.
Hi @Zasheus
I've forked and modified the single-click editing demo: https://stackblitz.com/edit/react-u9chwq?file=Demo.tsx
Is this the behavior you're looking for?
from mui-x.
@Zasheus Looks good to me!
While it's quite verbose, I don't have a more elegant solution, unfortunately.
from mui-x.
Thanks @cherniavskii for the confirmation. Since this seems resolved I will close the issue now. @Zasheus feel free to reopen if you encounter any problems with the solution! Thanks!
from mui-x.
If you have a similar problem, please open a new issue and provide details about your specific problem.
If you can provide additional information related to this topic that could help future readers, please feel free to leave a comment.
How did we do @Zasheus?
Your experience with our support team matters to us. If you have a moment, please share your thoughts through our brief survey.
from mui-x.
Related Issues (20)
- [pickers] Build error because of `@mui/utils/clamp` HOT 7
- [data grid] Filter panel columns customize HOT 3
- [pickers][DateRangePicker] Separately disable start and end date picking HOT 4
- [data grid] Multi Selection functionality in the Columns visibility panel HOT 1
- [data grid] `valueGetter` row is always never HOT 3
- [license] I just bought a new license and got a new license key, but I don't want to change my previous key. HOT 5
- [data grid] Is there a property to tell the grouping row column to ignore the valueFormatter/renderCell ? HOT 1
- [data grid] How do I save the filtered row data to state? HOT 6
- [pickers] Create RTL demo example HOT 2
- [data grid] Warn when `scrollToIndexes` has invalid arguments HOT 2
- [data grid] RenderHeader value is not being used in manage column component ? HOT 3
- [data grid] The cell selection color is not being applied HOT 2
- [data grid] Show/Hide All Columns, if all columns are hidden, unable to restore visibility. HOT 2
- [data grid] add "is not any of " in "singleSelect" type for filters HOT 1
- [Time Picker] button tomorrow HOT 2
- [charts] `categoryGapRatio` & `barGapRatio` is not a known property of `ChartXAxis` HOT 5
- [charts][docs] Need to document how to create a custom tooltip axisContent HOT 5
- [data grid] Change child table width on change of parent table HOT 2
- [data grid] tree collapses when controlled row selection is used HOT 4
- Please add documentation for preventing SSR flicker/FOUC with the Next.js app router [docs]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mui-x.