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

Busy Indicator while waiting for print dialog

3 Answers 148 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jared Pinchot
Top achievements
Rank 1
Jared Pinchot asked on 05 Nov 2010, 08:39 PM
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).

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 10 Nov 2010, 08:21 PM
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
0
Iosu Buenetxea
Top achievements
Rank 1
answered on 27 Jul 2011, 12:46 PM
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.
0
Steve
Telerik team
answered on 27 Jul 2011, 01:45 PM
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!

Tags
General Discussions
Asked by
Jared Pinchot
Top achievements
Rank 1
Answers by
Steve
Telerik team
Iosu Buenetxea
Top achievements
Rank 1
Share this question
or