Options for initialized dashboard.

Stimulsoft Dashboards.WEB discussion
Post Reply
AndiOliver
Posts: 1
Joined: Sat Jan 05, 2019 1:37 pm

Options for initialized dashboard.

Post by AndiOliver »

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
Andrew
Posts: 4104
Joined: Fri Jun 09, 2006 3:58 am

Re: Options for initialized dashboard.

Post by Andrew »

Hello,

The report has the preview settings and in the last version you can setup this.

From code you can do this by customizing the ShowSaveButton property of the viewer.

Thank you.
Post Reply