Online Designer Save Diaglog
Posted: Thu Apr 03, 2025 1:49 pm
Hi,
I'm using the stimulsoft-reports-js-react Designer component in a React project. I’ve implemented a custom save logic using the onSaveReport callback to save reports directly to a remote server via API.
However, even though the report is successfully saved remotely, the browser’s save/download dialog still appears after saving, which I want to prevent completely.
Here’s what I’ve tried:
Setting event.preventDefault() and event.stopPropagation() inside onSaveReport
Returning false at the end of the callback
Setting designerOptions.saveMode = Stimulsoft.Designer.StiSaveMode.Custom
None of these fully stopped the save dialog from opening.
Expected behavior:
Only the custom save logic should run and no browser download or dialog should appear after saving.
How can I completely suppress the save/download dialog when using a custom save handler?
Thanks in advance!
I'm using the stimulsoft-reports-js-react Designer component in a React project. I’ve implemented a custom save logic using the onSaveReport callback to save reports directly to a remote server via API.
However, even though the report is successfully saved remotely, the browser’s save/download dialog still appears after saving, which I want to prevent completely.
Here’s what I’ve tried:
Setting event.preventDefault() and event.stopPropagation() inside onSaveReport
Returning false at the end of the callback
Setting designerOptions.saveMode = Stimulsoft.Designer.StiSaveMode.Custom
None of these fully stopped the save dialog from opening.
Expected behavior:
Only the custom save logic should run and no browser download or dialog should appear after saving.
How can I completely suppress the save/download dialog when using a custom save handler?
Thanks in advance!