Showing a Dashboard in the Viewer
Our sample projects and report templates can help you learn the basics of working with our products.Stimulsoft provides native Blazor components, so a dashboard is shown with the viewer tag.
Viewer setup. Configure the viewer, load the dashboard, assign it to the component, and process the requests or events raised by the UI.
Viewer setup. Configure the viewer, load the dashboard, assign it to the component, and process the requests or events raised by the UI.
@page "/"
@using Stimulsoft.Report
@using Stimulsoft.Report.Blazor
<StiBlazorViewer Report="@Report" />
@code {
private StiReport Report;
protected override void OnInitialized()
{
base.OnInitialized();
this.Report = StiReport.CreateNewDashboard();
this.Report.Load("Dashboards/DashboardChristmas.mrt");
}
}The <StiBlazorViewer> component binds to a StiReport created with CreateNewDashboard(). The interactive dashboard — charts, tables, gauges and filters — is rendered in the browser.