MudBlazor / MudBlazor

Blazor Component Library based on Material design with an emphasis on ease of use. Mainly written in C# with Javascript kept to a bare minimum it empowers .NET developers to easily debug it if needed.
http://mudblazor.com
MIT License
8.18k stars 1.29k forks source link

MidDataGrid PropertyColumn with a format and inline editable #10315

Open Imaginary-Narwhal opened 1 day ago

Imaginary-Narwhal commented 1 day ago

Feature request type

Enhance component

Component name

MudDataGrid

Is your feature request related to a problem?

When using Formatting on a PropertyColumn, (for example, for currency) when settings the DataGridEditMode to Cell, a cell that is formatted with currency is then changed to a basic cell. IE: if I have 400 dollars, it will display $400.00 if the cell isn't editable, but when editable it will only show 400.

Describe the solution you'd like

Would like a possible solution to allow the field to retain it's formatting when it is editable, maybe using masking. Or maybe allow the field to be displayed as the formatting shows until the cell is clicked for editing.

Have you seen this feature anywhere else?

No response

Describe alternatives you've considered

No response

Pull Request

Code of Conduct

ScarletKuro commented 1 day ago

Technically, you could override EditTemplate inside PropertyColumn and write your own logic how to edit value that would also respect the formatting.