-
Hi, how can I add a non standard CommandButton? I saw the sample here but I would prefer to have the button in the command button column. I want the button to be used to move the row up or down in the grid, and I have the logic for that. #PushingDataGridToTheLimit |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
We still don't have a template for custom commands. But, you can use one of the existing ones to add a custom button. <DataGridCommandColumn TItem="Employee" Width="170px">
<EditCommandTemplate>
<Button Color="Color.Primary" Clicked="@context.Clicked">@context.LocalizationString</Button>
<Button Color="Color.Secondary">Your custom command</Button>
</EditCommandTemplate>
</DataGridCommandColumn> |
Beta Was this translation helpful? Give feedback.
-
Change it to |
Beta Was this translation helpful? Give feedback.
Change it to
async Task OnUpButtonClicked(EditCommandContext<myClass> context)