SSRS Report Viewer not working with RadAjaxManager

2 posts, 0 answers
  1. Robin
    Robin avatar
    41 posts
    Member since:
    Sep 2012

    Posted 20 Mar 2015 Link to this post

    Hello all, 

    I have a problem to show AjaxLoadingPanel when loading report in SSRS ReportViewer. I created a simple webpage that contains only one button and one report viewer control. OnClick event of the button, I load the report. It working properly without AjaxManager.
    With AjaxManager, I ended with this error message: "Uncaught Sys.InvalidOperationException: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'rptViewer_ReportViewer'. If it is being updated dynamically then it must be inside another UpdatePanel."

    I need to use AjaxManager as I need to show loading panel while report was generating. Following is the markup of my page.
    <form id="form1" runat="server">
        <%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=, Culture=neutral, PublicKeyToken=89845dcd8080cc91"
            Namespace="Microsoft.Reporting.WebForms" TagPrefix="rvweb" %>
        <telerik:RadScriptManager runat="server" ID="RadScriptManager1" EnablePartialRendering="true">
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
        <telerik:RadSkinManager ID="radSkinManager1" runat="server" Skin="WebBlue"></telerik:RadSkinManager>
        <telerik:RadAjaxManager ID="ajaxMgr1" runat="server">
                <telerik:AjaxSetting AjaxControlID="pnlMain">
                        <telerik:AjaxUpdatedControl ControlID="pnlMain" LoadingPanelID="RadAjaxLoadingPanel1" />
            <asp:Panel ID="pnlMain" runat="server" Style="height: 100vh;">
                <asp:Button ID="btnViewReport" runat="server" Text="View" OnClick="btnViewReport_Click" />
                <hr />
                <rvweb:ReportViewer ID="rptViewer" runat="server" AsyncRendering="false" Height="100%" Width="100%"
                    ProcessingMode="Remote" ShowZoomControl="false" SizeToReportContent="true" CssClass="reportBody"
                    PageCountMode="Actual" ShowPrintButton="true" ExportContentDisposition="AlwaysInline">

    FYI: In my real project, asp:Panel (pnlMain) is the wrapper of Master Page ContentPlaceHolder. My main intention is to show loading panel on every postback of the whole project.

    Please advice.

    Thanks in advanced,
  2. Viktor Tachev
    Viktor Tachev avatar
    1785 posts

    Posted 25 Mar 2015 Link to this post

    Hi Robin,

    There are multiple reports of a ReportViewer not working as expected with AJAX. Check out the following resources for additional information.

    Would you try to use Telerik ReportViewer and see if the behavior is different? In order to Ajax-enable the control you can use the approach from the article below:


    Viktor Tachev

    See What's Next in App Development. Register for TelerikNEXT.

Back to Top