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

Disabling new feature "Interactive view " by default

9 Answers 871 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michele
Top achievements
Rank 2
Michele asked on 17 Nov 2011, 12:48 PM
Hello,
how can I disable this?
Thanks

Paolo

9 Answers, 1 is accepted

Sort by
0
Colby
Top achievements
Rank 1
answered on 18 Nov 2011, 05:26 PM
I also would like to know how to do this. I can't find anything about it in the documentation, it just says you can do it but nothing on how to do so.
0
Steve
Telerik team
answered on 18 Nov 2011, 05:50 PM
Hi Colby,

You can switch between Interactive view and Print Preview, using the toggle button right next to the refresh button in the viewer toolbar. If you wish to start with Print Preview as default view, set the ViewMode Property of the viewer to PrintPreview.

Greetings,
Steve
the Telerik team

Q2’11 SP1 of Telerik Reporting is available for download (see what's new). Get it today.

0
Colby
Top achievements
Rank 1
answered on 18 Nov 2011, 05:55 PM
Is that property a part of Telerik.ReportViewer.Wpf? That is what I am using and I don't see the the ViewMode property. But yeah, I would like to set it by default so the user doesn't have to change it manually by clicking the button.
0
Colby
Top achievements
Rank 1
answered on 18 Nov 2011, 06:04 PM
To elaborate i have this 

Private myviewer As New Telerik.ReportViewer.Wpf.ReportViewer

and i would expect this to work

myviewer.ViewMode = ViewMode.PrintPreview

but the myviewer.ViewMode is not a member of Wpf.ReportViewer. The ViewMode.PrintPreview is recognized but the property on the viewer itself doesn't seem to be there. thanks.
0
Steve
Telerik team
answered on 23 Nov 2011, 04:20 PM
Hello Colby,

Indeed currently setting PrintPreview as default view is a bit tricky and we plan to expose a ViewMode property for both Silverlight and WPF viewer in the upcoming service pack. For the time being you would have to inherit from our viewer, get its model and set the ViewMode property:

in MainPage.xaml:
<local:MyReportViewer Grid.Row="1" x:Name="ReportViewer1"
Width="1000"
telerikControls:StyleManager.Theme="{Binding SelectedItem, ElementName=ThemeSelector}"
ReportServiceUri="../ReportService.svc"
Report="Telerik.Reporting.Examples.CSharp.ProductTagReport, CSharp.ReportLibrary" />

and in MainPage.xaml.cs:
public class MyReportViewer : ReportViewer
    {
        public override void OnApplyTemplate()
        {
            var report = this.Report;
            this.Report = "";
 
            base.OnApplyTemplate();
 
            var layoutRoot = (FrameworkElement)VisualTreeHelper.GetChild(this, 0);
            var rvm = (ReportViewerModel)layoutRoot.DataContext;
            rvm.ViewMode = ViewMode.PrintPreview;
            this.Report = report;
        }
    }

Regards,
Steve
the Telerik team

Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

0
Peter Staev
Top achievements
Rank 1
answered on 02 Dec 2011, 02:38 PM
OK, i really do not understand how you can implement such a "ground-breaking" functionality w/o allowing the developers to easily change the settings. Most of the users are used to the "Print Preview" view and will by default have to click on the print preview button in order to get the view which is absurd. To me seems you rushed to release this "ground-breaking" functionality w/o even making efforts to allow developers to easily turn it off...

Thanks but no thanks, will be staying with the previous release until all this mess is sorted out.
0
Steve
Telerik team
answered on 05 Dec 2011, 04:22 PM
Hello Peter,

We agree that we could have provided an easier way to turn it off for the Silverlight/WPF viewers and we're currently working on addressing this omission. The fix should be part of the upcoming service pack in about a month.

Kind regards,
Steve
the Telerik team

Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

0
Michele
Top achievements
Rank 2
answered on 19 Dec 2011, 05:32 PM
Steve excuse me.... since our customers doesn't understand why it shows the report in 2 pages (with interactive view turned on) can you please tell me how I can have it in just one? it's quite urgent..Thanks

the workaround you've prodivded works for showing in old style?
Thanks

Paolo
0
Steve
Telerik team
answered on 21 Dec 2011, 02:40 PM
Hello Paolo,

The interactive view does not mean that the whole report would be rendered as a single huge page. This is rather an exception than a rule and can happen if a single section (or data items such as SubReport or Table) grows more than the height defined in the page settings. As you can see from the online examples, our demo reports are still rendered in several pages as in the "old style" you refer to.

Regards,
Steve
the Telerik team

Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

Tags
General Discussions
Asked by
Michele
Top achievements
Rank 2
Answers by
Colby
Top achievements
Rank 1
Steve
Telerik team
Peter Staev
Top achievements
Rank 1
Michele
Top achievements
Rank 2
Share this question
or