none
ReportViewer inside UpdatePanel in firefox have a big problem RRS feed

  • Question

  • Hi everyone,

     I got a strange problem on ReportViewer control in update panel in firefox2.0, it works in IE7.

    Please have a look at my description:

    I have a master pager with UpdatePanel and in the content page I put a ReportViewer control into that update panel.

    The process mode of the ReportViewer is remote.
    When I first load the page, I will call Page load method and at this time, the page navigation works fine:

    protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
               
                        // Init the report viewer control to display the report.
                        InitReportViewerControl();
                        // Build all the parameters needed in the measurement values report and pass it to the report.
                        SetReportParameters();
                     
            }
        }

    And I have a refresh button to trigger the update of UpdatePanel and here is the code of refresh button:

     private void Master_RefreshClicked(object sender, EventArgs e)
        {       
            // Init the report viewer control to display the report.
            InitReportViewerControl();
            // Build all the parameters needed in the measurement values report and pass it to the report.
            SetReportParameters();
        }

    private void InitReportViewerControl()
        {
            reportViewerValue.ServerReport.ReportPath = Constants.VALUE_REPORT_PATH;
            reportViewerValue.ServerReport.ReportServerUrl =
                new Uri(ConfigurationManager.AppSettings[Constants.REPORT_SERVER_ADDR_KEY]);       
        }

      private void SetReportParameters()
        {       
            ........
            // Parameters for the stored procedures and report format.       
            ReportParameter[] parameters = { ... some paras
                                        };

            // Set the parameter and display the report.
            reportViewerValue.ServerReport.SetParameters(parameters);
            reportViewerValue.ServerReport.Refresh();
        }   

    After  I click this refresh button, the navigation control on the report viewer control doesn't work. I can't navigate to the page 2 or last page.

     

    Does some one have some idea on this?

    Thank you for any information!
    Baby Baby I love you!
    Sunday, February 8, 2009 1:32 AM

Answers

  • The ReportViewer is not currently supported in an UpdatePanel, in any browser.  There are a number of problems with the viewer in this scenario that require synchronous postbacks.  We are currently working on this and the next release of the viewer will support ASP.Net AJAX.
    Sunday, February 15, 2009 7:29 PM
    Moderator

All replies

  • What does the navigation control look like? grey?
    Wednesday, February 11, 2009 9:15 PM
  • Let me explain it to you:
    e.g. there is 10 pages and normally it will be 1 of 10 pages.
    when you click the "next page" or "last page", it will still be 1 of 10 pages.


    Baby Baby I love you!
    Thursday, February 12, 2009 12:41 AM
  • The ReportViewer is not currently supported in an UpdatePanel, in any browser.  There are a number of problems with the viewer in this scenario that require synchronous postbacks.  We are currently working on this and the next release of the viewer will support ASP.Net AJAX.
    Sunday, February 15, 2009 7:29 PM
    Moderator
  • Thank you for the information 
    Baby Baby I love you!
    Monday, February 16, 2009 12:21 AM