MudTable inline edit mode RowEditCommitAsync #2720
Replies: 4 comments 2 replies
-
@SoccerBoyMalloy Hello. What about OnCommitEditClick? It will trigger the event and is asynchronous. <MudTable ... OnCommitEditClick="Do" ...>
private async Task Do(MouseEventArgs args)
{
await Task.Delay(1);
Console.WriteLine("Here!");
} |
Beta Was this translation helpful? Give feedback.
-
You can use OnCommitEditClick event instead of RowEditCommit, and use your own async method in there. On next release we can have a new event about EditPreview. You also look at this discussion. #1934 Edit: @boukenka make an example while i am writing here :) |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response! What's not clear to me with that approach is how I pass the |
Beta Was this translation helpful? Give feedback.
-
We may continue to discuss on discussion section 🙂 |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
I'm creating a table with inline edit mode. I'm using
RowEditCommit
to commit my edits by calling out to an API. However, sinceRowEditCommit
is notasync
, there's no good way toawait
my API call and handle the response accordingly.Describe the solution you'd like
It'd be nice if there was some kind of
RowEditCommitAsync
property.Beta Was this translation helpful? Give feedback.
All reactions