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

6 posts, 0 answers
  1. An
    An avatar
    23 posts
    Member since:
    Aug 2013

    Posted 05 Nov 2013 Link to this post

    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.
  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2466 posts

    Posted 08 Nov 2013 Link to this post

    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.
  3. An
    An avatar
    23 posts
    Member since:
    Aug 2013

    Posted 12 Nov 2013 Link to this post

    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
  4. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2466 posts

    Posted 14 Nov 2013 Link to this post

    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.
  5. vijay
    vijay avatar
    1 posts
    Member since:
    Nov 2014

    Posted 11 Jan 2017 in reply to Konstantin Dikov Link to this post

    hi Konstantin,

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

  6. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2466 posts

    Posted 16 Jan 2017 Link to this post

    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.
Back to Top