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

vertical scroll doesn't work on PageWidth zoom mode

6 Answers 178 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Lior ef
Top achievements
Rank 1
Lior ef asked on 28 Jul 2010, 09:48 AM
hi,

i have a very simple report and i have a window with ReportViewer.
in design time at the XAML source - defining the report viewer ZoomMode to Pagewidth i noticed that later on runtime the vertical scroll doesn't work, it's just stuck, sometime the scroll locks, looks like disabled, only when i change the zoom from the report viewer the scroll functionality returns.
it only happen when in full screen and only in PageWidth ZoomMode.

can you plz help?

thanks,
lior.

6 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 30 Jul 2010, 12:33 PM
Hello Lior ef,

Unfortunately we were not able to reproduce the problem you've encountered. Can you elaborate which viewer you're using (WPF or Silverlight), what is its size etc. The fastest way to get to the bottom of the problem would be if you provide us with a sample runnable project that shows the erroneous behavior at hand.

Sincerely yours,
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
Lior ef
Top achievements
Rank 1
answered on 02 Aug 2010, 09:58 AM
fair enough.
i'm using wpf report viewer on visual studio 2008 .net 3.5

this is an example report:

namespace ReportTemplates
{
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;
    using Telerik.Reporting;
    using Telerik.Reporting.Drawing;
 
    partial class Report1
    {
        #region Component Designer generated code
        /// <summary>
        /// Required method for telerik Reporting designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.pageHeader = new Telerik.Reporting.PageHeaderSection();
            this.detail = new Telerik.Reporting.DetailSection();
            this.pageFooter = new Telerik.Reporting.PageFooterSection();
            this.textBox1 = new Telerik.Reporting.TextBox();
            this.textBox2 = new Telerik.Reporting.TextBox();
            this.textBox3 = new Telerik.Reporting.TextBox();
            this.textBox4 = new Telerik.Reporting.TextBox();
            this.textBox5 = new Telerik.Reporting.TextBox();
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            //
            // pageHeader
            //
            this.pageHeader.Height = new Telerik.Reporting.Drawing.Unit(0.80000013113021851, Telerik.Reporting.Drawing.UnitType.Inch);
            this.pageHeader.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
            this.textBox1});
            this.pageHeader.Name = "pageHeader";
            //
            // detail
            //
            this.detail.Height = new Telerik.Reporting.Drawing.Unit(3.1000001430511475, Telerik.Reporting.Drawing.UnitType.Inch);
            this.detail.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
            this.textBox4,
            this.textBox5});
            this.detail.Name = "detail";
            //
            // pageFooter
            //
            this.pageFooter.Height = new Telerik.Reporting.Drawing.Unit(2.8104171752929688, Telerik.Reporting.Drawing.UnitType.Inch);
            this.pageFooter.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
            this.textBox2,
            this.textBox3});
            this.pageFooter.Name = "pageFooter";
            //
            // textBox1
            //
            this.textBox1.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch));
            this.textBox1.Name = "textBox1";
            this.textBox1.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(5.7000007629394531, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.80000013113021851, Telerik.Reporting.Drawing.UnitType.Inch));
            this.textBox1.Style.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
            this.textBox1.Style.Color = System.Drawing.Color.Red;
            this.textBox1.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(40, Telerik.Reporting.Drawing.UnitType.Point);
            this.textBox1.Value = "Somthing";
            //
            // textBox2
            //
            this.textBox2.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(3.9418537198798731E-05, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(1.9999996423721314, Telerik.Reporting.Drawing.UnitType.Inch));
            this.textBox2.Name = "textBox2";
            this.textBox2.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(5.69992208480835, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.81037807464599609, Telerik.Reporting.Drawing.UnitType.Inch));
            this.textBox2.Style.BackgroundColor = System.Drawing.Color.Yellow;
            this.textBox2.Style.Font.Bold = true;
            this.textBox2.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(30, Telerik.Reporting.Drawing.UnitType.Point);
            this.textBox2.Value = "Somthing else";
            //
            // textBox3
            //
            this.textBox3.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch));
            this.textBox3.Name = "textBox2";
            this.textBox3.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(5.69992208480835, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.81037807464599609, Telerik.Reporting.Drawing.UnitType.Inch));
            this.textBox3.Style.BackgroundColor = System.Drawing.Color.Yellow;
            this.textBox3.Style.Font.Bold = true;
            this.textBox3.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(30, Telerik.Reporting.Drawing.UnitType.Point);
            this.textBox3.Value = "Somthing else";
            //
            // textBox4
            //
            this.textBox4.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(2.2895431518554688, Telerik.Reporting.Drawing.UnitType.Inch));
            this.textBox4.Name = "textBox2";
            this.textBox4.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(5.69992208480835, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.81037807464599609, Telerik.Reporting.Drawing.UnitType.Inch));
            this.textBox4.Style.BackgroundColor = System.Drawing.Color.Yellow;
            this.textBox4.Style.Font.Bold = true;
            this.textBox4.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(30, Telerik.Reporting.Drawing.UnitType.Point);
            this.textBox4.Value = "Somthing else";
            //
            // textBox5
            //
            this.textBox5.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(7.8678131103515625E-05, Telerik.Reporting.Drawing.UnitType.Inch));
            this.textBox5.Name = "textBox5";
            this.textBox5.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(5.69992208480835, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.81037807464599609, Telerik.Reporting.Drawing.UnitType.Inch));
            this.textBox5.Style.BackgroundColor = System.Drawing.Color.Yellow;
            this.textBox5.Style.Font.Bold = true;
            this.textBox5.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(30, Telerik.Reporting.Drawing.UnitType.Point);
            this.textBox5.Value = "Somthing else";
            //
            // Report1
            //
            this.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
            this.pageHeader,
            this.detail,
            this.pageFooter});
            this.PageSettings.Landscape = false;
            this.PageSettings.Margins.Bottom = new Telerik.Reporting.Drawing.Unit(1, Telerik.Reporting.Drawing.UnitType.Inch);
            this.PageSettings.Margins.Left = new Telerik.Reporting.Drawing.Unit(1, Telerik.Reporting.Drawing.UnitType.Inch);
            this.PageSettings.Margins.Right = new Telerik.Reporting.Drawing.Unit(1, Telerik.Reporting.Drawing.UnitType.Inch);
            this.PageSettings.Margins.Top = new Telerik.Reporting.Drawing.Unit(1, Telerik.Reporting.Drawing.UnitType.Inch);
            this.PageSettings.PaperKind = System.Drawing.Printing.PaperKind.A4;
            this.Style.BackgroundColor = System.Drawing.Color.White;
            this.Width = new Telerik.Reporting.Drawing.Unit(5.7000007629394531, Telerik.Reporting.Drawing.UnitType.Inch);
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
 
        }
        #endregion
 
        private Telerik.Reporting.PageHeaderSection pageHeader;
        private Telerik.Reporting.DetailSection detail;
        private Telerik.Reporting.PageFooterSection pageFooter;
        private Telerik.Reporting.TextBox textBox1;
        private Telerik.Reporting.TextBox textBox2;
        private Telerik.Reporting.TextBox textBox4;
        private Telerik.Reporting.TextBox textBox5;
        private Telerik.Reporting.TextBox textBox3;
    }
}

this is the main window XAML:
<Window x:Class="MainProject.Window1"
    xmlns:reporting="clr-namespace:Telerik.ReportViewer.Wpf;assembly=Telerik.ReportViewer.Wpf"
    Title="Window1" Height="300" Width="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
            <telerik:RadButton Grid.Row="0" Name="createReport" Click="createReport_Click">
                Create Report
            </telerik:RadButton>
            <reporting:ReportViewer Grid.Row="1" Name="myReportViewer" ZoomMode="PageWidth"/>
         
    </Grid>
</Window>

main window code behind:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
 
namespace MainProject
{
    /// <summary>
    /// Interaction logic for Window1.xaml
    /// </summary>
    public partial class Window1 : Window
    {
        public Window1()
        {
            InitializeComponent();
        }
 
        private void createReport_Click(object sender, RoutedEventArgs e)
        {
            Telerik.Reporting.Report myReport = new ReportTemplates.Report1();
            myReportViewer.Report = null;
            myReportViewer.Report = myReport;
        }
    }
}

instructions:
before pressing the "Create Report" button Maximize the main window. now create the report.
when the window is miximized, and the viewer is set to ZoomMode= PageWidth the scroll doesn't work even though the report
is longer than the viewer, mouse scroll does work.

0
Lior ef
Top achievements
Rank 1
answered on 03 Aug 2010, 01:42 PM
one more thing i found out.
i've added 3 boolean type, visible report parameters to the report.
in PageWidth zoom mode, at runtime, i try to change the checkbox value - i press the checkbox and the visual content doesn't change.
(if it was checked it stays that way and if it was empty - stays empty)
but when i resize the window (or any action that effects the visual layout) the checkbox visual content refreshes to the right value.
reporting version: 4.1.10.729
WPF controls version: 2010.2.714.35
0
Peter
Telerik team
answered on 05 Aug 2010, 10:31 AM
Hello Lior ef,

Thank you for elaborating and for the code snippets.

Unfortunately we are not sure we have correctly understood your inquiry. We have made some tests locally with a project based on your code snippets and explanation but we cannot find anything wrong. To avoid any confusion please check out the attached video. We would appreciate to elaborate if it is showing what you think is wrong. If the video doesn't show what is wrong please prepare and send us a video that shows the issue through the support system.

Greetings,
Peter
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
Lior ef
Top achievements
Rank 1
answered on 05 Aug 2010, 01:25 PM
hi peter,

first - thank you for the effort with the movie and all.

about the problem with the parameters, i'm working on the movie.
meanwhile - i made a movie about the first question i asked you, about the scroll bar.
(the 3 first messages in this thread talk about the first problem)

this is the link to my movie (swf): http://www.mediafire.com/?dp44rfk0wcwk6pp

i'm writing the problem again:
when the ReportViewer is in ZoomMode ="PageWidth" i run my app, maximize the window to full screen.
i create the report by pressing the button. then you can see the scroll bar is disabled.
i zoom out a little bit and the scroll bar shows and works OK.
i zoom in and the scroll bar just won't move for some reason.
using -
reporting Version: 4.1.10.729,
WPF radcontrols version: 2010.2.714.35
.net 3.5 on visual studio 2008

best wishes.
0
Steve
Telerik team
answered on 09 Aug 2010, 04:18 PM
Hello Lior ef,

As we are unable to reproduce the issue on our end with your code and steps as per the movie, we would appreciate if you provide us with a sample runnable project that exhibits the problem. As we can see from your video, there is some problem with the UI in general as the ReportViewer toolbar shows 0 of 1 pages before you zoom. So somehow the viewer has not been updated, but we are unsure how to replicate this.

Looking forward to your reply.

All the best,
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
Tags
General Discussions
Asked by
Lior ef
Top achievements
Rank 1
Answers by
Steve
Telerik team
Lior ef
Top achievements
Rank 1
Peter
Telerik team
Share this question
or