-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
[data grid] Editable Cell Tabbing #12214
Comments
I am not sure I do understand you requirement. Exmaple:
|
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. |
Oh, that's an interesting use case. @romgrk is it possible to update cell values "mid-edit"? |
I don't think so, that's a new feature or change we'd need to make. How about we add a @mui/xgrid Thoughts? |
Sounds like a good idea, but how can that help with this specific use case? |
Hi @Zasheus |
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 |
@Zasheus Looks good to me! |
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! |
How did we do @Zasheus? |
The problem in depth
I am currently using DataGrid for CRUD with the single click edit recipe. I need the edit mode to be "cell" as I fill in non editable cells with data on an edit cell commit. However, I want the user to be able to tab from one editable cell to another, like how "row" edit mode works. Ideally when it is the last cell it should go to the next row to.
Whats the best option to do this? Thanks
Your environment
`npx @mui/envinfo`
Search keywords: Focus, Tab
Order ID: 75414
The text was updated successfully, but these errors were encountered: