Approved
Last Updated: 31 Oct 2018 08:07 by ADMIN
ADMIN
Deyan
Created on: 06 Nov 2014 11:42
Category: PDFViewer
Type: Feature Request
0
PdfViewer: Implement CurrentPageChanging event allowing to cancel page changing

		
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
4 comments
Stefan
Posted on: 06 Nov 2014 18:53
Because people can scroll up and down, I think a better way of doing this is to have a mode on the viewer which displays only a single page at a time.  That's what I'm looking to try and achieve.
Stefan
Posted on: 08 Nov 2014 08:40
Maybe the FixedDocumentSinglePageViewPresenter would work, if you then could stop a page change. I had forgotten about that mode!
Stefan
Posted on: 08 Nov 2014 09:17
Nope, the FixedDocumentSinglePageViewPresenter doesn't work because it still has the scroll bar to move between pages.  That scrollbar should not be existing in the scenario that I'm looking for you should be all of you just a single page and have control over when other pages get displayed.  Thanks
ADMIN
Petya
Posted on: 10 Nov 2014 14:45
Hi Stefan,
As you found out, RadPdfViewer already has a mode allowing to view a PDF one page at a time. On the other hand, the requirements you have seem somewhat specific to your application, so we are not planning on introducing another mode that will achieve this task. 
We believe that the implementation of the event logged in this item would allow you to prevent changing of the page and thus achieve the desired result. Alternatively, you can try creating a custom document presenter by following the steps outlined in this article: http://www.telerik.com/help/wpf/radpdfviewer-customization-and-extensibility-custom-document-presenter.html.