Hello,
I am seeing an error output into the console when on a page with a Dashboard component.
The error is:
Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: Value cannot be null. (Parameter 'json')
System.ArgumentNullException: Value cannot be null. (Parameter 'json')
at System.Text.Json.JsonSerializer.Deserialize[InitialClientModel](String json, JsonSerializerOptions options)
at Syncfusion.Blazor.Layouts.SfDashboardLayout.OnAfterScriptRendered()
at Syncfusion.Blazor.SfBaseComponent.OnAfterRenderAsync(Boolean firstRender)
at Syncfusion.Blazor.Layouts.SfDashboardLayout.OnAfterRenderAsync(Boolean firstRender)
I am using the default code that was outlined in the Getting Started tutorial:
<SfDashboardLayout>
<DashboardLayoutPanels>
<DashboardLayoutPanel>
</DashboardLayoutPanel>
</DashboardLayoutPanels>
</SfDashboardLayout>Notes:
|
builder.Services.AddSyncfusionBlazor(); |
This problem still persists in version 19.4.0.48 on the DashboardLayout component. However, the workaround works as well. When will the bug fix be released?
Also, what is the impact of removing the following code and replacing
builder.Services.AddSyncfusionBlazor(options =>
{
options.IgnoreScriptIsolation = true;
});
with
builder.Services.AddSyncfusionBlazor( );?