Page 1 of 1

StiWebViewer empty menu standart items

Posted: Thu Feb 21, 2019 3:01 pm
by mach33
Hi,

I'm new in using Stimulsoft.Reports.Web so sorry if it's a stupid question (answered elsewhere)...
I tryed to put WebViewer to aspx page ... <cc1:StiWebViewer ID="StiWebViewer1" runat="server" ContentAlignment="Left" OnReportDesign="StiWebViewer1_ReportDesign" />
and than I wanted to print/Save report. In the menu for Print/Save/Single Page I saw those empty MenuItems and scrollbars. Is it normal behavior for WebViewer or
how can I get rid off these empty MenuItems (<div id="" class="stiJsViewerMenuStandartItem" style="height: 24px;">)?
The same is for StiWebDesigner.

Stimulsoft.Report.Web, Version=2019.2.1

Thanks

Re: StiWebViewer empty menu standart items

Posted: Thu Feb 21, 2019 5:12 pm
by HighAley
Hello.

Sorry, we can't reproduce the issue.
Please, try our Samples from GitHub.
Do you get the same issue there?

Thank you.

Re: StiWebViewer empty menu standart items

Posted: Mon Mar 04, 2019 3:33 pm
by mach33
Hi,

I found more info about this problem. In my website there are some external components in it and one of them uses prototype.js, that adds functions to elements.
So in StiJsViewer.prototype.VerticalMenu = function(...) items variable has functions added and in code

for (var index in items) {
if (typeof (items[index]) != "string")
this.innerContent.appendChild(this.jsObject.VerticalMenuItem(this, items[index].name, items[index].caption, items[index].imageName, items[index].key, this.itemStyleName, items[index].haveSubMenu));
else
this.innerContent.appendChild(this.jsObject.VerticalMenuSeparator(this, items[index]));
}

variable index cycle through functions ... so I need something like this:

for (var index in items) {
if (typeof (items[index]) != "function") {
if (typeof (items[index]) != "string")
this.innerContent.appendChild(this.jsObject.VerticalMenuItem(this, items[index].name, items[index].caption, items[index].imageName, items[index].key, this.itemStyleName, items[index].haveSubMenu));
else
this.innerContent.appendChild(this.jsObject.VerticalMenuSeparator(this, items[index]));
}
}

Can you help me in some way?

Thank you.

Re: StiWebViewer empty menu standart items

Posted: Tue Mar 05, 2019 9:19 am
by Lech Kulikowski
Hello,

Thank you for the detailed information. The issue is fixed, will be available in the next build in this week.

Thank you.

Re: StiWebViewer empty menu standart items

Posted: Fri Mar 15, 2019 2:42 pm
by mach33
Hi,

I just got Stimulsoft.Report.Web, Version=2019.2.2. and its fixed.

Thank you.

Re: StiWebViewer empty menu standart items

Posted: Sat Mar 16, 2019 4:25 am
by Andrew
Hello,

Thank you for the update.
Have a nice weekend!