MVC Designer: Change Designer Options at Runtime / On Action
Posted: Fri Jan 13, 2017 4:21 pm
Hello,
how can I change the options of the StiMvcMobileDesigner at runtime/onAction. E.g. ShowSaveButton is set to false by default
and I'd like to show the button after the report was saved via "Save as"
Regards,
Florian
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 })
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);
}
Florian