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
StiWebViewer empty menu standart items
StiWebViewer empty menu standart items
- Attachments
-
- viewer_menuscroll.JPG (338.56 KiB) Viewed 2011 times
Re: StiWebViewer empty menu standart items
Hello.
Sorry, we can't reproduce the issue.
Please, try our Samples from GitHub.
Do you get the same issue there?
Thank you.
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
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.
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 (107.48 KiB) Viewed 1982 times
-
- Posts: 7339
- Joined: Tue Mar 20, 2018 5:34 am
Re: StiWebViewer empty menu standart items
Hello,
Thank you for the detailed information. The issue is fixed, will be available in the next build in this week.
Thank you.
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
Hi,
I just got Stimulsoft.Report.Web, Version=2019.2.2. and its fixed.
Thank you.
I just got Stimulsoft.Report.Web, Version=2019.2.2. and its fixed.
Thank you.
Re: StiWebViewer empty menu standart items
Hello,
Thank you for the update.
Have a nice weekend!
Thank you for the update.
Have a nice weekend!