Page 1 of 1
Editable report programatically stop edit mode
Posted: Mon Dec 17, 2018 11:59 pm
by angelcalvasp
I currently have a custom save button which does a certain custom action to recreate the data from edited fields as a json object but I would like to end edit mode when I click that custom save button
Is there a way for a report to programmatically leave edit mode in and and editable report?
currently using latest version
Re: Editable report programatically stop edit mode
Posted: Tue Dec 18, 2018 11:39 am
by Lech Kulikowski
Hello,
You can use the following code:
Code: Select all
var viewer = new Stimulsoft.Viewer.StiViewer(viewerOptions, "StiViewer", false);
viewer.renderHtml("content");
//finish editable mode
viewer.jsObject.SetEditableMode(false);
Thank you.
Re: Editable report programatically stop edit mode
Posted: Wed Dec 19, 2018 5:32 pm
by angelcalvasp
Awesome thanks
Re: Editable report programatically stop edit mode
Posted: Wed Dec 19, 2018 7:43 pm
by Lech Kulikowski
Hello
We are always glad to help you!
Please let us know if you need any additional help.
Thank you.