Options for initialized dashboard.
Posted: Sat Jan 05, 2019 1:46 pm
Hello,
I am currently implementing Stimulsoft Web Dashboard into our application. I've based all our developments on the sample project provided on GitHub [Samples-Dashboards-NET.Core-MVC-CSharp].
I am trying to customize the menu of the displayed dashboard (do not want to allow file menu to be displayed). Into the standard report designer I was able to establish options like this:
var options = new Stimulsoft.Designer.StiDesignerOptions();
options.toolbar.showFileMenuOpen = false;
And those options will be promoted to the namespace [Stimulsoft.Designer.StiDesigner]
But now, with those example controllers for dashboards which loads directly mrt files, how can I customize those menus?
I assume I must put those options on the method:
public IActionResult GetReport(string id)
{
var report = new StiReport();
report.Load(StiNetCoreHelper.MapPath(this, $"Dashboards/{id}.mrt"));
return StiNetCoreDesigner.GetReportResult(this, report);
}
Best regards,
Andi
I am currently implementing Stimulsoft Web Dashboard into our application. I've based all our developments on the sample project provided on GitHub [Samples-Dashboards-NET.Core-MVC-CSharp].
I am trying to customize the menu of the displayed dashboard (do not want to allow file menu to be displayed). Into the standard report designer I was able to establish options like this:
var options = new Stimulsoft.Designer.StiDesignerOptions();
options.toolbar.showFileMenuOpen = false;
And those options will be promoted to the namespace [Stimulsoft.Designer.StiDesigner]
But now, with those example controllers for dashboards which loads directly mrt files, how can I customize those menus?
I assume I must put those options on the method:
public IActionResult GetReport(string id)
{
var report = new StiReport();
report.Load(StiNetCoreHelper.MapPath(this, $"Dashboards/{id}.mrt"));
return StiNetCoreDesigner.GetReportResult(this, report);
}
Best regards,
Andi