Interactive report features — sorting, drill-down, collapsing groups, chart interaction — work in the web viewer without extra code.

The viewer. The page uses the standard viewer helper; interaction is defined in the templates themselves:
@Html.StiNetCoreViewer(new StiNetCoreViewerOptions()
{
    Actions = { GetReport = "GetReport", ViewerEvent = "ViewerEvent" }
})

Selecting the report. The page-model handler loads a different interactive template by id:
public IActionResult OnPostGetReport(int id = 1)
{
    var report = new StiReport();
    switch (id)
    {
        case 1: report.Load(StiNetCoreHelper.MapPath(this, "Reports/Sorting.mrt")); break;
        case 2: report.Load(StiNetCoreHelper.MapPath(this, "Reports/ListOfProducts.mrt")); break;
        case 3: report.Load(StiNetCoreHelper.MapPath(this, "Reports/GroupWithCollapsing.mrt")); break;
        case 5: report.Load(StiNetCoreHelper.MapPath(this, "Reports/InteractiveCharts.mrt")); break;
    }
    return StiNetCoreViewer.GetReportResult(this, report);
}

The interaction is configured on the components at design time; the viewer then handles the user's clicks and requests new data through the same handler when needed.

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.