Manage slider events of RadPdfViewer

6 posts, 0 answers
  1. Ariel
    Ariel avatar
    9 posts
    Member since:
    Aug 2010

    Posted 19 Jun 2012 Link to this post

    I need to call a custom method when the slider / scroller of the RadPdfViewer slides up and down. How can I do that ?
  2. Kammen
    Admin
    Kammen avatar
    312 posts

    Posted 21 Jun 2012 Link to this post

    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 >>

  3. DevCraft banner
  4. Ariel
    Ariel avatar
    9 posts
    Member since:
    Aug 2010

    Posted 21 Jun 2012 Link to this post

    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.

  5. Kammen
    Admin
    Kammen avatar
    312 posts

    Posted 25 Jun 2012 Link to this post

    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 >>

  6. Ariel
    Ariel avatar
    9 posts
    Member since:
    Aug 2010

    Posted 25 Jun 2012 Link to this post

    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.
  7. Kammen
    Admin
    Kammen avatar
    312 posts

    Posted 26 Jun 2012 Link to this post

    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 >>

Back to Top
DevCraft banner