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

PDF Export Empty (0 Bytes)

1 Answer 126 Views
Grid
This is a migrated thread and some comments may be shown as answers.
André
Top achievements
Rank 1
André asked on 05 Apr 2017, 01:19 PM

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..

 

 

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 07 Apr 2017, 06:08 AM
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 (charts) and form elements.
Tags
Grid
Asked by
André
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or