PDF Export Empty (0 Bytes)

2 posts, 0 answers
  1. André
    André avatar
    2 posts
    Member since:
    Apr 2017

    Posted 05 Apr Link to this post

    Hey out there,

    currently we try to switch our Grid (old Telerik Grid)  and its functionality to the Kendo Grid.. Everythings works pretty fine except PDF export.

    https://pastebin.com/z5AG95hx 

    This snippet demonstrates the way the grid is embedded. Excel Export works fine. PDF Export returns empty pdf file. If I force proxy I get the following error:

    n caught TypeError: t.split is not a function

        at n (kendo.all.js:3292)

    If I don't use a proxy I get an empty file and no action seems to get called.

    Whats the secret? Thanks in advance..

     

     

  2. Stefan
    Admin
    Stefan avatar
    1257 posts

    Posted 07 Apr Link to this post

    Hello André,

    This is not a known issue and it was not reproduced in our testing scenarios.

    I can suggest checking when the pdfExport event is fired if the promise had the page information:

    http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#events-pdfExport

    As for the server proxy, I can suggest checking the following resources and example:

    http://docs.telerik.com/kendo-ui/framework/save-files/introduction#set-server-proxy

    Also, I can suggest checking our runnable example with server-side export:

    http://www.kendoui.io/kendo-ui/aspnet-mvc/helpers/grid/how-to/pdf-export-server-side

    If the issue still occurs, please send a fully runnable example and I will gladly assist.

    Regards,
    Stefan
    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