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

PDF File is not opening inside RadWindow

2 Answers 209 Views
Telerik Trainer
This is a migrated thread and some comments may be shown as answers.
Radhakrishnan
Top achievements
Rank 1
Radhakrishnan asked on 10 Jul 2012, 03:25 PM
Hi all,
     i am trying to open a PDF file inside RadWindow.Its working in Chrome and Firefox but in IE its not opening.Any help.

<telerik:RadWindow ID="RadWindow1" runat="server">
    <ContentTemplate> 
    <iframe id='iframe3' runat='server' width='600px' height='600px' src='/files/sample.pdf'></iframe>
    </ContentTemplate>
  </telerik:RadWindow>

2 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 13 Jul 2012, 12:30 PM
Hi Radha,

 I tested your code but the PDF document is correctly loaded in IE on my side - please examine the attached iframe_contenttemplate_IE.jpg screenshot. What i can assume is that for some reason the path to the file is incorrect or your browser has some plugin installed which prevents the loading of the PDF.

On a side note, you can load a PDF document in RadWindow without putting an IFRAME there, by directly setting the NavigateUrl to th epath as follows:

<telerik:RadWindow ID="RadWindow2" runat="server" VisibleOnPageLoad="true" NavigateUrl="RadEditorExport.pdf">
</telerik:RadWindow>

In this manner the RadWindow will not only automatically create an IFRAME inside itself but it will also resize it when the RadWindow is resized, you can use the OnClientPageLoad client event, etc. and that is why i suggest to examine this configuration too and take advantage of built-in features if they fit your requirements.


To test whether the issue is in path or browser plugin, I suggest you test with my test demo I attached to the thread /I put 2 RadWindows with both the ContentTemplate and the NavigateUrl approaches for your reference/  and test under IE on your side.

I hope that my reply and suggestions are detailed enough and helpful, let me know how it goes.

All the best,
Svetlina Anati
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Eddy
Top achievements
Rank 1
answered on 04 May 2015, 04:18 PM

Hello, 

I have the same problem. the solution telerik posted is not working on IE 11.

 any suggustion?

Regards,

Tags
Telerik Trainer
Asked by
Radhakrishnan
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Eddy
Top achievements
Rank 1
Share this question
or