Blazor Server, .NET 6 Core. Parent component holds several child Razor components within RadzenTabs using TabRenderMode.Client. When my <EmailGenerate />
child does something I send an InvokeAsync back to the Parent. The parent then responds to that and calls the <DueList />
and <LogList />
children to refresh Datagrid to display updated data added from the <EmailGenerate />
component. I can see a Console.WriteLine
output that the method to refresh is getting called and the same refresh methods works manually on a button click. However, nothing is updated until I manually refresh. Do I need to call something directly on the RadzenTabs component? Is this a limitation of the TabRenderMode setting?
Thanks!
<RadzenTabs RenderMode="TabRenderMode.Client" @ref="myTabs"
@bind-SelectedIndex=@selectedIndex Change=@OnChange>
<Tabs>
<RadzenTabsItem Text="Deadlines">
<CascadingValue Value=@Id>
<DueList dueQueryType="matter" @ref="DueListComponent" />
</CascadingValue>
</RadzenTabsItem>
<RadzenTabsItem Text="Log">
<CascadingValue Value=@Id>
<LogList @ref="LogListComponent" />
</CascadingValue>
</RadzenTabsItem>
<RadzenTabsItem Text="Email">
<CascadingValue Value=@Id>
<EmailGenerate matterRootDir=@MatterPath MatterId=@Id MatterType=@matterTypeID ClientId=@clientId
OnEmailSent=@RefreshLogDueFiles
MatterTypeText=@item.MatterTypeText
CurrentPath=@MatterPath />
</CascadingValue>
</RadzenTabsItem>
</Tabs>
</RadzenTabs>