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.

Используя этот сайт, вы соглашаетесь на использование файлов Cookie для аналитики и персонализированного контента. Файлы Cookie хранят полезную информацию на вашем компьютере, чтобы помочь нам повысить эффективность и удобство использования. Для получения дополнительной информации, пожалуйста, прочтите Конфиденциальность и Использование Cookie.