<GridColumn HeaderText="Manage Records" Width="150">
<Template>
@{
<div style="display:inline-flex">
<EjsTooltip Content="@ContentEdit" Target="#btnEdit" CssClass="inlineclass">
<EjsButton ID="btnEdit" @ref="buttonEdit" @onclick="@OnClickEdit" CssClass="far fa-edit"></EjsButton>
</EjsTooltip>
<EjsTooltip Content="@ContentDelete" Target="#btnDelete">
<EjsButton ID="btnDelete" @ref="buttonDelete" @onclick="@OnClickDelete" CssClass="fas fa-trash-alt"></EjsButton>
</EjsTooltip>
</div>
}
</Template>
</GridColumn>
|
<EjsGrid DataSource="@Orders" AllowPaging="true" Height="315">
...
<GridColumns>
...
<GridColumn HeaderText="Manage Records" Width="150">
<Template>
@{
<EjsButton @ref="buttonEdit" HtmlAttributes="@EditButton" @onclick="@OnClickEdit" CssClass="far fa-edit"></EjsButton>
<EjsButton @ref="buttonDelete" HtmlAttributes="@DeleteButton" @onclick="@OnClickDelete" CssClass="fas fa-trash-alt"></EjsButton>
}
</Template>
</GridColumn>
</GridColumns>
</EjsGrid>
@code{
...
private Dictionary<string, object> DeleteButton = new Dictionary<string, object>()
{
{ "title", "Delete Button"}
};
private Dictionary<string, object> EditButton = new Dictionary<string, object>()
{
{ "title", "Edit Button"}
};
...
}
|