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

Select and copy

3 Answers 53 Views
Window
This is a migrated thread and some comments may be shown as answers.
ayyappa
Top achievements
Rank 1
ayyappa asked on 06 Aug 2014, 06:06 AM
Hi There,

I'm using a rad window to display pdf. Can we customize the mouse events such as click inside of a rad window, if it can, How?

3 Answers, 1 is accepted

Sort by
0
Accepted
Ianko
Telerik team
answered on 06 Aug 2014, 02:03 PM
Hi Ayyappa,

Using the built-in plugin of the browser to show the PDF files (i.e., using the NavigateUrl property set to a PDF file) is a feature taht is entirely controlled by the browser plugin. When an iframe element (the RadWindow) is loaded with a PDF file, the DOM (window.document) is not available with the well known DOM events, therefore there is no available client-side API that could let you control the user actions happened on window (the browser window) loaded with a PDF content.

On a side note, there is the pdf.js library that is commonly used to render PDF files in the browser using an entirely third-party client-side library. More about integrating this library with the Telerik controls explained and demonstrated in this blog post.

Regards,
Ianko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
ayyappa
Top achievements
Rank 1
answered on 07 Aug 2014, 04:22 AM
Thank you Lanko
0
ayyappa
Top achievements
Rank 1
answered on 07 Aug 2014, 04:27 AM
Thank You lanko, But is there any other way to display the pdf without using pdf.js library where we can control the environment?
Tags
Window
Asked by
ayyappa
Top achievements
Rank 1
Answers by
Ianko
Telerik team
ayyappa
Top achievements
Rank 1
Share this question
or