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

RadWindow and PDF

1 Answer 80 Views
Window
This is a migrated thread and some comments may be shown as answers.
Eric Schoenholzer
Top achievements
Rank 2
Eric Schoenholzer asked on 16 Aug 2011, 01:10 AM
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


1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 17 Aug 2011, 09:43 AM
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.

Tags
Window
Asked by
Eric Schoenholzer
Top achievements
Rank 2
Answers by
Marin Bratanov
Telerik team
Share this question
or