Hi Atsushi,
Greetings from Syncfusion support.
We have validated your query and we would like to inform you that by default, the clicked toolbar item will be in focus if the item is not re-rendered. This is the default behavior. we have prepared a sample to remove the focus after clicking the toolbar item. Please refer the below code snippet and the sample for your reference.
|
<SfGrid ID="Grid" DataSource="@Orders" AllowPaging="true" Height="200" @ref="Grid" AllowGrouping="true" Toolbar="Toolbar">
<GridEvents OnToolbarClick="ToolbarClickHandler" TValue="Order"></GridEvents>
@code{
SfGrid<Order> Grid;
public async Task ToolbarClickHandler(Syncfusion.Blazor.Navigations.ClickEventArgs args)
{
if (args.Item.Id == "copy" || args.Item.Id == "copyheader") {
await Grid.FocusAsync();
}
}
} |
Get back to us if you have any other queries.
Regards,
Jeevakanth SP.