PDF File is not opening inside RadWindow

3 posts, 0 answers
  1. Radhakrishnan
    Radhakrishnan avatar
    1 posts
    Member since:
    Jun 2012

    Posted 10 Jul 2012 Link to this post

    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. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 13 Jul 2012 Link to this post

    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.
  3. Eddy
    Eddy avatar
    1 posts
    Member since:
    Jul 2013

    Posted 04 May 2015 Link to this post

    Hello, 

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

     any suggustion?

    Regards,

Back to Top