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

how to do multiple pdf exports

7 Answers 209 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Doug
Top achievements
Rank 1
Doug asked on 09 Dec 2016, 04:17 PM
I have a grid I made and users can export it into pdf via a button.
what they want is to select a number of users that each make their own pdf and to just export all their grids into pdf's into a zip.

is there any way to do this?

I could possibly make each grid on the page at one time but how to export them all at once into separate pdf's

7 Answers, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 14 Dec 2016, 12:45 PM
Hi Doug,

I am afraid exporting of multiple pdf document on a single request is not supported. In case you need to export multiple RadGrids in a single Pdf document you can use the approach from the following code library.

Regards,
Kostadin
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.
0
Doug
Top achievements
Rank 1
answered on 14 Dec 2016, 04:56 PM
is this not similar to what I want? or is the zip stream limited to only 1 pdf?
http://www.telerik.com/forums/zip-of-pdf-document-doesn-t-work
0
Konstantin Dikov
Telerik team
answered on 19 Dec 2016, 09:55 AM
Hi Doug,

You should be able to add multiple files to the ZipArhive as demonstrated in the following forum thread:

Best 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.
0
Doug
Top achievements
Rank 1
answered on 01 Feb 2017, 12:46 AM
I am able to get the GridExporting event to write 1 of the files to a server folder.
but then the export opens in a dialog box on the window.
is there a way to get the steam without a dialog window opening on the server and without redirecting?

even if I could call back into a function from the GridExporting event sub to continue the exports.

or is there any other method to save a RadGrid to a server file(s)
maybe the only way might be to call into a popup window that cycles through a querystring list of exports and it does each one at a time, redirects back to itself with a shorter list, until it is done.

my end goal is to export 1+ gridview forms into files under a folder and zip them up to deliver to the client.
0
Konstantin Dikov
Telerik team
answered on 03 Feb 2017, 12:27 PM
Hello Doug,

The easiest option would be to use an external button for initiating the export, but with enabled AJAX (wrapping it within a RadAjaxPanel for example). This will prevent the user to receive the exported file.


Best 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.
0
Doug
Top achievements
Rank 1
answered on 08 Feb 2017, 02:57 AM
I am unsure how you mean to do an external button and ajax requests.
any small sample or example?

I tried the server redirect and the page will timeout after it does about 150 file exports.
(method I used was save in database the request and list of reports to make for that request and it loops each one at a time and flags them as done, then redirects back to itself to continue.)

I would like to request an update to Telerik Radgrid to be able to export those file types (doc, excel, pdf, csv) to a file on the server.
how can I make this change request?
0
Eyup
Telerik team
answered on 10 Feb 2017, 03:01 PM
Hi Doug,

I'm afraid this functionality is not provided by RadGrid. You can log this requirement as a feature request in our improvements portal:
http://feedback.telerik.com/Project/108


Regards,
Eyup
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
Doug
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Doug
Top achievements
Rank 1
Konstantin Dikov
Telerik team
Eyup
Telerik team
Share this question
or