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

Add header images to export file

2 Answers 174 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Raul
Top achievements
Rank 1
Raul asked on 27 Jan 2009, 03:33 PM
Hi all,

I'm using grid and export data into excel file, but I want to make cells alignment center, also when I checked "Enable filtering" text boxes HTML exported also to excel, so how I can hide this in file?
Also can I add logog or any other content in the first row cells of excel??

Please advise.
Regards

2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 27 Jan 2009, 06:51 PM
Hello Raul,

Straight to your questions:

1) You can use the ExcelExportCellFormatting event to set the alignment. More information is available in the document below:
Export to Microsoft Excel/Word/PDF/CSV

2) Set ExportOnlyData="true" to hide the unwanted controls.

3) I recommend you use the Caption property of the TableView to insert text above your RadGrid. It's not possible to export (embed) images in the Excel file. This question is answered in the following thread:
Radgrid doesnt export image in excel

Let us know if you need further assistance.

Regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Julian
Top achievements
Rank 1
answered on 12 Sep 2011, 09:07 AM
Hi,

Would u plz so kind to probide me with an example of third step:
3) I recommend you use the Caption property of the TableView to insert text above your RadGrid.

thanks,
Julian.
Tags
Grid
Asked by
Raul
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Julian
Top achievements
Rank 1
Share this question
or