This is a migrated thread and some comments may be shown as answers.

SSRS Report Viewer not working with RadAjaxManager

1 Answer 278 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Robin
Top achievements
Rank 2
Robin asked on 20 Mar 2015, 11:22 AM
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=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"
        Namespace="Microsoft.Reporting.WebForms" TagPrefix="rvweb" %>
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" EnablePartialRendering="true">
    </telerik:RadScriptManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadSkinManager ID="radSkinManager1" runat="server" Skin="WebBlue"></telerik:RadSkinManager>
    <telerik:RadAjaxManager ID="ajaxMgr1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="pnlMain">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlMain" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <div>
        <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">
            </rvweb:ReportViewer>
        </asp:Panel>
    </div>
</form>

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,
Robin

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 25 Mar 2015, 09:34 AM
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:

 


Regards,
Viktor Tachev
Telerik
 

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

 
Tags
Ajax
Asked by
Robin
Top achievements
Rank 2
Answers by
Viktor Tachev
Telerik team
Share this question
or