DataGrid Save Function close and run another Method for saving #3768
Answered
by
stsrki
peterhym21
asked this question in
Q&A
-
How do you get the Save button in the Inline Editor to close the editor and call another method in the @code{} block
|
Beta Was this translation helpful? Give feedback.
Answered by
stsrki
May 6, 2022
Replies: 1 comment
-
Something like this <EditCommandTemplate>
<Button Color="Color.Primary" Clicked="@(()=>OnEditClicked(context))">@context.LocalizationString</Button>
</EditCommandTemplate>
@code {
async Task OnEditClicked( EditCommandContext<Employee> context )
{
// do something here
await context.Clicked.InvokeAsync();
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
peterhym21
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Something like this