StiWebViewer empty menu standart items

Stimulsoft Reports.WEB discussion
Post Reply
mach33
Posts: 5
Joined: Thu Feb 21, 2019 2:22 pm

StiWebViewer empty menu standart items

Post 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
Attachments
viewer_menuscroll.JPG
viewer_menuscroll.JPG (338.56 KiB) Viewed 2010 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: StiWebViewer empty menu standart items

Post 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.
mach33
Posts: 5
Joined: Thu Feb 21, 2019 2:22 pm

Re: StiWebViewer empty menu standart items

Post 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.
Attachments
VerticalMenu.JPG
VerticalMenu.JPG (107.48 KiB) Viewed 1981 times
Lech Kulikowski
Posts: 7339
Joined: Tue Mar 20, 2018 5:34 am

Re: StiWebViewer empty menu standart items

Post 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.
mach33
Posts: 5
Joined: Thu Feb 21, 2019 2:22 pm

Re: StiWebViewer empty menu standart items

Post by mach33 »

Hi,

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

Thank you.
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Re: StiWebViewer empty menu standart items

Post by Andrew »

Hello,

Thank you for the update.
Have a nice weekend!
Post Reply