RadWindow and PDF

2 posts, 0 answers
  1. Eric Schoenholzer
    Eric Schoenholzer avatar
    138 posts
    Member since:
    Mar 2004

    Posted 15 Aug 2011 Link to this post

    I'm trying to assign a ASPX page, which returns a streamed PDF, to a RadWindow.
    This is working in Chrome and FF, but not in IE.

    I have seen some threads in this forum about similar topics,
    but still not clear to me if this is a supported scenario or not (-> it works).
    And what would be the best solution.

    Thanks for clarifying
    Eric


  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4609 posts

    Posted 17 Aug 2011 Link to this post

    Hi Eric,

    The RadWindow loads the page in an iframe and thus behaves like one. If you point the NavigateUrl property directly to a PDF the document will be loaded in the RadWindow (or the user will be prompted to save it, depending on the browser settings). If you are streaming a file from an aspx page please make sure that you set the correct headers so that the browser will know what is coming, instead of trying to interpret it as text/html:
    a list with the available properties
    one mime type reference
    one discussion on the types

    I would advise that you start by making it work propertly in a regular iframe in IE, too, then the same code should work for the RadWindow as well.

    Greetings,
    Marin
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top