I'm trying to make event for a child grid in this code:
<SfGrid DataSource="@lists" ID="container" @ref="TaskGrid" Toolbar="@(new List<object>() { "Print" })" AllowSelection="true"
AllowSorting="true" AllowFiltering="true" AllowPaging="true" AllowTextWrap="true"
EnableHover="false" RowHeight="38">
<GridTemplates>
<DetailTemplate>
@{
var tasku = new tasku ();
<SfGrid DataSource="@taskdetails" AllowSelection="true" AllowSorting="true" AllowPaging="true" AllowTextWrap="true" EnableHover="true"
Toolbar="@gridToolBar" RowHeight="38">
<GridEvents TValue="TasksTasks" OnToolbarClick="ToolbarClickHandler"></GridEvents>
<GridSelectionSettings Mode="Syncfusion.Blazor.Grids.SelectionMode.Row"></GridSelectionSettings>
<GridEditSettings AllowAdding="true"
AllowEditing="true"
AllowEditOnDblClick="true"
AllowDeleting="true"></GridEditSettings>
<GridSortSettings>
</GridSortSettings>
<GridColumns>
<GridColumn Field=@nameof(TasksTaskUpdates.UpdateId) IsPrimaryKey="true" AllowAdding="false"
AllowEditing="false" HeaderText="Update Id" Width="100"></GridColumn>
<GridColumn DefaultValue="@DateTime.Today" Field=@nameof(TasksTaskUpdates.UpdateDate)
HeaderText="Update Date" Width="100"></GridColumn>
<GridColumn Field=@nameof(TasksTaskUpdates.Update) HeaderText="Update" Width="500"
ClipMode="ClipMode.EllipsisWithTooltip"></GridColumn>
</GridColumns>
</SfGrid>
}
</DetailTemplate>
</GridTemplates>
</SfGrid>
But failing because the GridEvents works with parent grid when clicked on print of parent grid, though i added the event in child SfGrid