Problems with SinglePage Application

Stimulsoft Reports.JS discussion
Post Reply
1mp
Posts: 1
Joined: Tue May 29, 2018 10:42 am

Problems with SinglePage Application

Post by 1mp »

Hey guys,
first of all, greate product. I realy like it.

But I've got some problems, and can't find any solution here or anywhere in www.

1. How can I prevent the designer to change my browsers title? I want to keep my own :-)
2. We are loading the Designer in an sort of internal windows. When the user closed this internal window without saving, the designer doesn't get the exit event and won't show the "Are you sure ... bla bla" Dialog. So far so good, I will do it by my own. But when the user closes the browser maybee 2 minutes later on an other site, the event is fired and the dialog comes up. How can i prevent this? Is is posible to destroy all events from the designer when my window closes?

Greets from germany
Malte
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Problems with SinglePage Application

Post by Lech Kulikowski »

Hello,

> 1. How can I prevent the designer to change my browsers title? I want to keep my own

You can use the following option:

Code: Select all

var options = new Stimulsoft.Designer.StiDesignerOptions();
options.appearance.allowChangeWindowTitle = false;

var designer = new Stimulsoft.Designer.StiDesigner(options, "StiDesigner", false);
designer.renderHtml("content");
> 2. We are loading the Designer in an sort of internal windows...

You can use the following code:

Code: Select all

Stimulsoft.Designer.StiDesigner(options, "StiDesigner", false);
...
designer.jsObject.options.ignoreBeforeUnload = true;
Thank you.
Post Reply