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

RadGrid Export Header and Footer

2 Answers 469 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lakshmi Thangaraj
Top achievements
Rank 1
Lakshmi Thangaraj asked on 04 Feb 2011, 02:36 PM
Hi,

When i am exporting a grid to pdf/word/excel the exported document looks very plain.
 Is it possible to set the footer and header when we exporting a grid to pdf/excel/word. so its static and always appears at the header and footer of a pdf/excel/word. 

Is this possible?

Thanks

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 07 Feb 2011, 06:02 AM
Hello Lakshmi,

You can set the Caption property as required to show heading for the exported file.
         RadGrid1.MasterTableView.Caption = "Heading";

Also take a look at the following forum which explains how to set header and footer for exported file.
Export to Excel/Pdf from RadGrid

Thanks,
Princy.
0
Daniel
Telerik team
answered on 09 Feb 2011, 10:59 PM
Hello Lakshmi,

You can use different approach depending on the export format. For example HTML Excel and ExcelML support real headers / footers. Pdf format supports plain text-only footer.

ExcelML structure / GridExcelBuilder

Kind 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
Lakshmi Thangaraj
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Daniel
Telerik team
Share this question
or