Approved
Last Updated: 01 Nov 2019 07:01 by ADMIN
Nelson
Created on: 31 Oct 2019 16:07
Category: PdfViewer
Type: Feature Request
0
RadPdfViewer: "Where i found the event "CurrentPageChanged" in RadPDFViewer or similar ?

I am using RadPDFViewer, i built a specific toolbar for manage the funcionalities of the viewer.

I didn´t found the any event when the current page is changed in viewer. I would like to show a label "Page NN of TT".

 I found this "https://www.telerik.com/forums/page-changed-detected", but didn´t have this event in RadPDFViewer.

 

Whats the better solution for the raise event when the current page displayed is changed? 

 

Can you help me ?!? 

1 comment
ADMIN
Dess | Tech Support Engineer, Sr.
Posted on: 01 Nov 2019 07:01

Hello, Nelson,         

Please have a look at PdfViewerNavigator which is a great addition to RadPdfViewer. It provides predefined UI for the most common operations used with PDF files including "Page NN of TT" indication: https://docs.telerik.com/devtools/winforms/controls/pdfviewer/pdfviewernavigator

The RadPdfViewerElement.CurrentPage.PageNo gives you the number of the current page loaded in RadPdfViewer. There is not CurrentPageChanged event that can be used in this case. The page label in RadPdfViewerElement is updated when a document is loaded, scrolled to a new position or jump to a fixed page number via the page textbox in the navigator. 

However, it is definitely a reasonable request to have a CurrentPageChanged event for RadPdfViewer in the Telerik Ui for WinForms suite. 

I have logged it in our feedback portal by making this thread public. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item.

 

I have also updated your Telerik points.

We will do our best to introduce this event in the one of the upcoming Latest Internal Builds. Currently, the possible solution is to handle the PdfViewerElement.Scroller.ScrollerUpdated event and check the PdfViewerElement.CurrentPage.PageNo property.

I hope this information helps. If you need any further assistance please don't hesitate to contact me.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.