Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
145013 | Jun 1,2019 06:09 PM UTC | Oct 21,2019 10:55 AM UTC | Blazor | 3 |
![]() |
Tags: Grid |
<EjsGrid @ref="GridInstance" TValue="Order" AllowPaging="true" DataSource="@Orders">
<GridEvents CommandClicked="CommandClickHandler" TValue="Order"></GridEvents>
<GridColumns>
<GridColumn HeaderText="Navigation" Width="120">
<GridCommandColumns>
<GridCommandColumn Type="CommandButtonType.None" Title="abc"
ButtonOption="@(new CommandButtonOptions()
{
IconCss = "remove-image-icon-icon-image", Content="customcommand"
})" />
</GridCommandColumns>
</GridColumn>
...
</GridColumns>
</EjsGrid>
@code{
...
public void CommandClickHandler(CommandClickEventArgs<Order> args)
{
//Perform your custom command button click operation here. And also with the value in “args” you can differentiate the buttons, if having multiple custom command buttons.
}
}
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.