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

Manage slider events of RadPdfViewer

5 Answers 147 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
Ariel
Top achievements
Rank 1
Ariel asked on 19 Jun 2012, 03:45 PM
I need to call a custom method when the slider / scroller of the RadPdfViewer slides up and down. How can I do that ?

5 Answers, 1 is accepted

Sort by
0
Kammen
Telerik team
answered on 21 Jun 2012, 09:00 AM
Hi Bhavik,

Can you explain in details what exactly you are trying to do in order to be sure that we will suggest you an approach that best suits your needs?

Looking forward to your reply.

Kind regards,
Kammen
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Ariel
Top achievements
Rank 1
answered on 21 Jun 2012, 04:08 PM
Hi

I need to call a method in my code, as I scroll up and down. My method (which I try to subscribe it to the scroll event of the RadPdfViewer)  will update values of other controlls in the page.

0
Kammen
Telerik team
answered on 25 Jun 2012, 08:56 AM
Hi Bhavik,

You should note that it is possible to scroll the document in RadPdfViewer not only from the scroll bars (Scroll event), but also using the Pan Tool, Page Up, Page Down, etc. All these methods will not fire the Scroll event for the scroll bars, as it is fired only on user interaction. 

Could you elaborate a bit more on which cases you would like to be able to handle?

Kind regards,
Kammen
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Ariel
Top achievements
Rank 1
answered on 25 Jun 2012, 02:09 PM
Hi
What I try to do is:
I am using RadPdfViewer to view PDF files and I added some WPF textboxes , users input in those boxes. I need to let textboxes to scroll / slide up and down as users slide the PDF file up and down. Simply my textboxes will look like attached to specific point of the pdf document.

I can disable the scroll bar of the RadPdfViewer, and use another scrollbar (perhaps a standard WPF scrollbar) to implement this functionality ( and I can page-up page-down the pdf file by using the pan tool), but I was wondering why the scroll event of the embeded scrollbar of RadPdfViewer is not accessible. It would be much easier to use the built-in slider of the RadPdfViewer.
0
Kammen
Telerik team
answered on 26 Jun 2012, 01:07 PM
Hello Bhavik,

There is an approach that will fit your case better. However, the API to be used is currently internal. We will need some time to decide what part of it we want to expose. This change is also connected to providing samples and documentation for the new functionality.

We will do our best to expose the API for the Service Pack that will be released at the end of July. We will also decide what scroll bar properties / scroll bar events / viewport events should be exposed for the SP.

We hope this will suit your needs.

If you have further questions, do not hesitate to contact us.

Greetings,

Kammen
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
PDFViewer
Asked by
Ariel
Top achievements
Rank 1
Answers by
Kammen
Telerik team
Ariel
Top achievements
Rank 1
Share this question
or