Hi Haizhi,
Thanks for contacting Syncfusion forums.
Query: “In the grid, I need to add a button in the toolbar with an check mark icon, the code I can find like below doesn't allow me to do that.”
We have achieved your requirement by using custom toolbar item support in Grid. Refer the below code example.
<EjsGrid DataSource="@Orders" @ref="Grid" AllowPaging="true" Height="200" Toolbar="Toolbaritems">
. . . . . .
</EjsGrid>
<style>
.e-check::before {
content: '\e7ff';
}
</style>
@code{
EjsGrid<Order> Grid;
public List<Order> Orders { get; set; }
private List<Object> Toolbaritems = new List<Object>() { "Add", "Edit", "Delete", "Update", "Cancel", new ItemModel() { Text = "Checked", TooltipText = "Checked", PrefixIcon = "e-check", Id = "Check" } };
. . . . . ..
}
|
Refer the below screenshot for the output
We have already documented this request in our UG documentation. Kindly refer the below link for your reference
Kindly get back to us if you have further queries.
Regards,
Vignesh Natarajan.