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
7.48k stars 1.2k forks source link

Full custom edit form for MudDataGrid #7421

Open mammadkoma opened 10 months ago

mammadkoma commented 10 months ago

Feature request type

Enhance component

Component name

MudDataGrid

Is your feature request related to a problem?

Please add a feature for full custom edit form for MudDataGrid that we design our edit popup for example :

Describe the solution you'd like

a feature for full custom edit form for MudDataGrid

Have you seen this feature anywhere else?

No response

Describe alternatives you've considered

No response

Pull Request

Code of Conduct

UltraWelfare commented 9 months ago

I'm facing the same issue too. My audience is not english-friendly and the product we're developing is being written in our native language.

Using the edit from of mud data grid is very useful with smaller models although it doesn't seem to be very customizable as the EditDialogOptions property inherits from "DialogOptions".

I guess it probably needs another MudDataGridEditDialogOptions to have these extra customization options such as ShowCancelButton.

As far as the text is concerned, localization could probably be used instead ?!

I wish I had the technical knowledge to make a PR about it, but I'm still very new to the Blazor family.

The only solution so far is not use the default datagrid edit form, and manually making your own forms using the dialog component which gives all the customizability in the world.

mammadkoma commented 9 months ago

I decide to use MudTable because the MudDataGrid render slow after getting data from web api but MudTable renders fast. For editing also I show an inline MudDialog because it is easier to use and send data to main component. Inline MudDialog sample is in MudDialog document.

timlunev commented 2 months ago

@ScarletKuro I don't know if you the person who can help with this, but I will ask. I am happy to do pull request for this feature request at least for Save and Cancel buttons text customization. Are there any prefered way how it can be implemented. I can add 2 seprate properties for the text directly in DataGrid or I can create separate options?

ScarletKuro commented 2 months ago

Hi.

DataGrid topics are usually @tjscience area. You are more than welcome to make a PR, but, please, be patience since DataGrid reviews take some time. As for text customization, there is localization feature that should be used, if we are talking about the text content.