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

RadGrid: Can the PDF be exported to a new window from within an iframe?

5 Answers 85 Views
Grid
This is a migrated thread and some comments may be shown as answers.
An
Top achievements
Rank 1
An asked on 05 Nov 2013, 03:16 PM
I have a page loaded in an iframe with a RadGrid.  The export feature does not work unless I set ExportSettings-OpenInNewWindow to false.  The problem is exporting to PDF fills the entire frame instead of opening up as a PDF file like setting ExportSettings-OpenInNewWindow to true.  Can the PDF be exported to a new window from within an iframe?

Thanks.

5 Answers, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 08 Nov 2013, 12:05 PM
Hi An,

I have tested your scenario and everything is working as expected on my end with Export-Settings-OpenInNewWindow set to "true" and a grid within iframe element.

Could you please test the attached sample page and see if it works as expected on your side. 

If you continue to face the issue, please elaborate about the RadControls version you are using and if this behavior is observable in all browsers.

 

Regards,
Konstantin Dikov
Telerik
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 the blog feed now.
0
An
Top achievements
Rank 1
answered on 12 Nov 2013, 01:55 PM
Hi Konstantin,

Thanks for the code samples.  I loaded these on the server and it behaved just the same as mine.  Nothing happened when exporting.  I am using IE 9.0.

I am using version 2012.3.1308.35

Thanks.

An
0
Konstantin Dikov
Telerik team
answered on 14 Nov 2013, 04:55 PM
Hello An,

I have tested previously attached sample page with version 2012.3.1308 and everything is working as expected in all browsers.

Since we are not able to replicate the issue locally, it is hard to determine the reasons behind this behavior on your end. Could you please test this in different browsers and see if the issue is still present or it is only observable in IE 9? Additionally, could you please debug and elaborate if the ExportToPdf command is firing. You could do this by setting break point in the ItemCommand server-side event handler:
protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
{
    if (e.CommandName == "ExportToPdf")
    {
        //
    }
}

Looking forward to your reply.

 

Regards,
Konstantin Dikov
Telerik
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 the blog feed now.
0
vijay
Top achievements
Rank 1
answered on 11 Jan 2017, 05:46 PM

hi Konstantin,

I am facing same issue, if you find any answer please let me know.

0
Konstantin Dikov
Telerik team
answered on 16 Jan 2017, 08:43 AM
Hi Vijay,

If you can isolate the issue in a sample project you can open a regular support ticket and attach it, so we can test the problem locally and see if we can reproduce the issue.

Meanwhile, can you please elaborate if the attached project in one of the previous posts works on your end?


Regards,
Konstantin Dikov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
An
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
An
Top achievements
Rank 1
vijay
Top achievements
Rank 1
Share this question
or