MudDataGrid: Add post-apply edit callback (CommittedItemChanged) for form edits#12907
Merged
danielchalmers merged 4 commits intoMar 27, 2026
Merged
Conversation
… edits Agent-Logs-Url: https://github.com/MudBlazor/MudBlazor/sessions/ad6588a7-7357-4552-8a2b-45bb1a60d4bc Co-authored-by: danielchalmers <[email protected]>
Agent-Logs-Url: https://github.com/MudBlazor/MudBlazor/sessions/ad6588a7-7357-4552-8a2b-45bb1a60d4bc Co-authored-by: danielchalmers <[email protected]>
Copilot
AI
changed the title
[WIP] Add event for after committed item changes in MudDataGrid
MudDataGrid: add post-apply edit callback (Mar 27, 2026
CommittedItemChanged) for form edits
CommittedItemChanged) for form editsCommittedItemChanged) for form edits
versile2
approved these changes
Mar 27, 2026
versile2
left a comment
Contributor
There was a problem hiding this comment.
Changes are solid, I hate adding another event but it makes sense.
Added commit 51bac26 (docs(datagrid): brevity change with xml expansion) to tighten the DataGrid editing docs and expand the XML docs so the edit event roles are clearer:
Before:
After:
This is mostly wording and presentation preference. If the current phrasing does not feel right in the rendered docs, I'm completely fine undoing or reworking it as you choose.
This was referenced Apr 8, 2026
This was referenced May 27, 2026
This was referenced Jun 3, 2026
This was referenced Jun 11, 2026
This was referenced Jun 22, 2026
This was referenced Jun 29, 2026
This was referenced Jul 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MudDataGridform editing currently invokesCommittedItemChangesbefore the edited values are copied back to the bound row item. This makes object-level change detection difficult when consumers need to evaluate state after the actual model mutation.API addition
CommittedItemChangedtoMudDataGrid<T>:EventCallback<T> CommittedItemChanged { get; set; }Commit flow update
CommittedItemChangedis invoked after values are copied from the edit clone to the source item.CommittedItemChangescompletes (item is already edited in-place in cell mode).CommittedItemChangescontract andKeepOpenbehavior remain unchanged.Unit coverage
CommittedItemChangessees edited copy while source item is still unchanged.CommittedItemChangedsees the source item after mutation.Docs
CommittedItemChangedas the post-apply hook.Example
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.