Busy Indicator while waiting for print dialog

4 posts, 0 answers
  1. Jared Pinchot
    Jared Pinchot avatar
    7 posts
    Member since:
    Dec 2009

    Posted 05 Nov 2010 Link to this post

    Is it possible to pop up a busy indicator while waiting for the print dialog to show up in the Silverlight Report Viewer. This is an issue with larger reports that take a while to render since users have no real indication that the application is doing anything. We get an indicator when you select one of the export options (i.e pdf export).
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 10 Nov 2010 Link to this post

    Hello Jared,

    Thank you for the suggestion. There is no way to achieve this in the current version, but we would definitely have it in mind when working on subsequent versions of the product and improving the Silverlight viewer.

    Best wishes,
    Steve
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Iosu Buenetxea
    Iosu Buenetxea avatar
    91 posts
    Member since:
    Jan 2008

    Posted 27 Jul 2011 Link to this post

    Hi, Steve.

    Any news about it?   A 145 page report needs about 2 minutes until the adobe print dialog shows up (I must use adobe).   I want to show a busy indicator but I don't know when to hide it.


    Regards,


    Iosu.
  5. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 27 Jul 2011 Link to this post

    Hello Iosu,

    We have not had time to work on this user experience improvement, but we have plans to improve the Web Report Viewer as a whole and would definitely have this suggestion in mind.
    For the time being you can achieve this functionality by replacing the original OnPrint and OnPrintReportLoaded functions of the client-side viewer object. Here is a sample code which illustrates the approach:
    Copy Code
    <telerik:ReportViewer runat="server" id="ReportViewer1" Height="570px"
                Width="780px"></telerik:ReportViewer>   
            <asp:Label runat="server" ID="Label1"></asp:Label>
             <script type="text/javascript">
                var viewer1 = <%= ReportViewer1.ClientID %>;
                viewer1.OnPrintReportLoadedOriginal = viewer1.OnPrintReportLoaded;
                 
                viewer1.OnPrint = function()
                {
                    UpdateStatusLabel("Preparing the report to print....");
                    this.PrintReport();
                };
                 
                viewer1.OnPrintReportLoaded = function()
                {
                    viewer1.OnPrintReportLoadedOriginal();
                    UpdateStatusLabel("");
                }  
                 
                function UpdateStatusLabel(msg)
                {
                    var label = document.getElementById('<%=Label1.ClientID %>');
                    label.innerHTML = msg;
                }                 
                 
             </script>

    Further you can customize the script to show or hide an animated image or implement any other way of displaying the print progress. Hope it helps.

    Regards,
    Steve
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top