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

Scrolling from another dialog

1 Answer 71 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
Lee
Top achievements
Rank 1
Lee asked on 07 Nov 2013, 06:44 PM
In my application I have a scenario where the user has one window open with the PDF Viewer control and they are looking at a pdf file then my application displays a modal dialog.  The user needs to be able to still scroll up/down in the PDF Viewer while this modal dialog is open.  I have given them some shortcut keys to scroll a page at a time (ctrl + pg up & ctrl + pg down) and then I send these commands to the control on the other window from the modal window.  This works for scrolling by a page but a lot of the time they just need to scroll a few lines.  Is there any API for the PDFViewer control that will allow me to send a command to scroll up or down a few lines?

Any help on this would be greatly appreciated!!!

Thanks in advance,
Lee

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 12 Nov 2013, 12:32 PM
Hello Lee,

RadPdfViewer exposes MoveDownCommandDescriptor, MoveUpCommandDescriptor, MoveRightCommandDescriptor and MoveLeftCommandDescriptor which can be used to navigate in the document. Those command descriptors also take into account what is the current Mode (TextSelection or Pan) - when in selection mode the caret is moved, and in pan mode the document is scrolled. You can access the descriptors from the CommandDescriptors property of the control.

I hope this is helpful. Please, do not hesitate to contact us if you have any other questions.

Regards,
Alexander
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
PDFViewer
Asked by
Lee
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Share this question
or