`StartedEditingItem` event is not raised when editing DataGrid item if `EditTrigger` is set to `OnRowClick` and `DataGridEditMode` is set to `Cell`
#5.958 aberto em 11 de dez. de 2022
Métricas do repositório
- Stars
- (10.394 estrelas)
- Métricas de merge de PR
- (Mesclagem média 6d 6h) (108 fundiu PRs em 30d)
Description
Bug type
Component
Component name
MudDataGrid
What happened?
StartedEditingItem is not raised when editing DataGrid item if EditTrigger is set to OnRowClick and DataGridEditMode is set to Cell.
StartedEditingItem is correctly raised if DataGridEditMode is set to Form.
This is problematic, because it prevents to implement things like backing up items before editing when DataGridEditMode is set to Cell.
Expected behavior
The StartedEditingItem should be raised either:
- as soon as the user clicks in the editable field
- or, even better, when they make the first change to the editable field
Reproduction link
Updated repro link (v. 8.14.0, 18/11/2025): https://try.mudblazor.com/snippet/ckcpFFvCVNJUWvqI
Old repro link (v. 6.1.4):
Reproduction steps
- Create Datagrid and make it editable
- Set editing mode to cell
- See no event raised ...
Relevant log output
No response
Version (bug)
6.1.4 - still present in 8.14.0
Version (working)
No response
What browsers are you seeing the problem on?
Chrome
On what operating system are you experiencing the issue?
Windows, Linux, Android
Pull Request
- I would like to do a Pull Request
Code of Conduct
- I agree to follow this project's Code of Conduct