Unplanned
Last Updated: 05 Jan 2018 14:25 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 29 Dec 2017 07:22
Category: PdfViewer
Type: Bug Report
2
FIX. RadPdfViewer - incorrect horizontal scrollbar is shown with the initially loaded document when the FitToWidth property is set to true
To reproduce: please run the attached sample project. If you reload the document, the horizontal scrollbar is not shown.

Workaround:
        public RadForm1()
        {
            InitializeComponent();

            this.radPdfViewer1.FitToWidth = false;
            this.radPdfViewer1.ViewerMode = Telerik.WinControls.UI.FixedDocumentViewerMode.None;
            this.radPdfViewer1.EnableThumbnails = false; 
            this.radPdfViewer1.DocumentLoaded += radPdfViewer1_DocumentLoaded;
            this.radPdfViewer1.LoadDocument(@"..\..\Go Air - Himanshe Ajeet Dubey - 17-01-2018 - Ranchi to Mumbai.pdf");
            Application.DoEvents();
        }

        private void radPdfViewer1_DocumentLoaded(object sender, EventArgs e)
        {
            Application.DoEvents();
            this.radPdfViewer1.FitToWidth = true;
        }
0 comments