MVC Designer: Change Designer Options at Runtime / On Action

Stimulsoft Reports.WEB discussion
Post Reply
florian
Posts: 10
Joined: Fri Jan 13, 2017 4:05 pm

MVC Designer: Change Designer Options at Runtime / On Action

Post by florian »

Hello,

how can I change the options of the StiMvcMobileDesigner at runtime/onAction. E.g. ShowSaveButton is set to false by default

Code: Select all

@Html.Stimulsoft().StiMvcMobileDesigner("StiMvcDesigner1", new StiMvcMobileDesignerOptions() { ShowSaveButton = false })
and I'd like to show the button after the report was saved via "Save as"

Code: Select all

public ActionResult SaveAsReportTemplate()
    {
    StiReport report = StiMvcMobileDesigner.GetReportObject(HttpContext);
    // ... Report is saved here...
    // => How to enable the save button here?
    return StiMvcMobileDesigner.SaveReportTemplateResult(HttpContext);
    }
Regards,
Florian
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: MVC Designer: Change Designer Options at Runtime / On Ac

Post by Alex K. »

Hello,

Unfortunately, it is not possible.
All option may be set only before initializing of the designer, viewer.

Thank you.
Post Reply