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

Export multiple grids to pdf

2 Answers 153 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Shirya
Top achievements
Rank 1
Shirya asked on 12 Aug 2011, 04:18 PM
Hello,
I have multiple ragrids in a table and I would like to export them in one PDF.
i saw this exemple : http://www.telerik.com/community/code-library/aspnet-ajax/grid/export-multiple-radgrids-in-single-pdf-excel-file.aspx
but I'm not sure it will work for me: My grids don't have the same column names, and iwhen i tried inserting the gridWrapper, i did'nt have access to any of my grids server-side.

Do you have an idea of how could i do it?
Thank you
Shirya

this is how i populate one of  my radgrids(it is practically the same for all): That is why i need to have access to them
 
'Retreive the list of functions in my DB then :
 
        If FunctionList.Count <> 0 Then
            Me.RadGridFunctions.DataSource = FunctionList
        Else
            Me.RadGridFonctions List(Of Fonction)
        End If
 
        Me.RadGridFunctions.DataBind()

2 Answers, 1 is accepted

Sort by
0
Shirya
Top achievements
Rank 1
answered on 15 Aug 2011, 01:14 PM
anyone?
0
Daniel
Telerik team
answered on 18 Aug 2011, 07:54 AM
Hello Shirya,

You could manually generate HTML code for the other grids and then inject this HTML using the PdfExporting event before it is being converted to PDF.
Please note, however, that this is not supported out of the box so you may face some limitations. I would recommend that you examine our PDF export help topic if you stumble upon such problem.

Regards,
Daniel
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Shirya
Top achievements
Rank 1
Answers by
Shirya
Top achievements
Rank 1
Daniel
Telerik team
Share this question
or