MudBlazor/MudBlazor

MudTable: Ability to autocommit when exiting inline edit mode

Aperta

#3659 aperta il 3 gen 2022

 (4 commenti) (15 reazioni) (0 assegnatari)C# (1631 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (10.394 stelle)
Metriche merge PR
 (Merge medio 6g 6h) (108 PR mergiate in 30 g)

Descrizione

Feature request type

Enhance component

Component name

MudTable

Is your feature request related to a problem?

To speed up the process of editing rows in a table, when exiting the inline edit mode of a row, we need to execute the Commit event instead of the Cancel event. If we override RowEditCancel to commit the changes, then they will also commit when clicking on the cancel button.

Describe the solution you'd like

Add a new boolean property to MudTable called for example Autocommit or CommitOnEditExit. If set to true, commit changes when exiting edit mode ("focus out"), except if you click the cancel button.

Have you seen this feature anywhere else?

No response

Describe alternatives you've considered

Another alternative would be to add a property called RowEditExit, like RowEditCommit and RowEditCancel, to be able to differentiate when the edit is canceled from the button and when the edit mode is exited without clicking the cancel button, and there decide whether or not to save the changes.

Pull Request

  • I would like to do a Pull Request

Code of Conduct

  • I agree to follow this project's Code of Conduct

Guida contributor