WebViewer does not display drop-down menu in UpdatePanel

Stimulsoft Reports.NET discussion
Post Reply
fuhrj
Posts: 120
Joined: Wed Jun 11, 2008 12:51 pm
Location: Lancaster, Ohio

WebViewer does not display drop-down menu in UpdatePanel

Post by fuhrj »

I placed my webviewer control inside an ASP Update Panel. The report runs and displays correctly. However, the drop-down menu for Print and Save options does not show.

I've tried using different rendering modes with no success.

Code: Select all


    
    
    
        
    
    


Code: Select all

StiReport report = new StiReport();
                    report.Load(Server.UrlDecode(filename));

                    if (report != null) {

                        StiSqlDatabase db = (StiSqlDatabase)report.Dictionary.Databases[0];
                        db.ConnectionString = dbConnector.GetConnectionString();

                        report.Dictionary.Databases.Clear();
                        report.Dictionary.Databases.Add(db);

                        webViewer.Report = report;

                        UpdatePanelReport.Update();

[/code]
Thanks!
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

WebViewer does not display drop-down menu in UpdatePanel

Post by Vladimir »

Hello,

Unfortunately, the AjaxWithCache render mode is not compatible with Update Panel, please use the UseCache or Standard render mode.

Thank you.
fuhrj
Posts: 120
Joined: Wed Jun 11, 2008 12:51 pm
Location: Lancaster, Ohio

WebViewer does not display drop-down menu in UpdatePanel

Post by fuhrj »

Thanks. Unfortunately none of those options worked.

I was able to find a workaround by using JQuery and an iFrame.

To auto-resize the iFrame, I used this JQuery plug-in:

https://github.com/house9/jquery-iframe ... ght#readme
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

WebViewer does not display drop-down menu in UpdatePanel

Post by Vladimir »

Hello,

For auto-resize you can also use this method (please see the attached archive).

Thank you.

Attachments
1271.Sample.zip
(288.67 KiB) Downloaded 415 times
aikar
Posts: 11
Joined: Tue Jun 07, 2011 3:19 am

WebViewer does not display drop-down menu in UpdatePanel

Post by aikar »

The exampe does not work for 2012.02.03
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

WebViewer does not display drop-down menu in UpdatePanel

Post by Vladimir »

Hello,

In the new version you can use Width="100%" and Height="100%" without any additional scripts.

Thank you.
Post Reply