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

RadGrid Export problem

1 Answer 24 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Leonardo
Top achievements
Rank 1
Leonardo asked on 16 Nov 2010, 04:53 PM
I have a simple RadGrid that I need to export to Excel, Word, PDF and CSV. I've tried many ways found online but none have worked for me.  here is what I have.

1. Master Page contains Microsoft ScriptManager control.
2. Update Panel contains the Content Page.
3. Grid is setup to export. 
4. The columns of the grid are build dinamically like the example before:
column = new GridBoundColumn();
((GridBoundColumn)column).DataField = col.Name;
((GridBoundColumn)column).HeaderText = col.Title;
((GridBoundColumn)column).HeaderStyle.HorizontalAlign = HorizontalAlign.Center;
grid.MasterTableView.Columns.Add(column);

When I try to export for any of the formats, the header text is not visible.

Anyone know how to fix this?

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 16 Nov 2010, 10:11 PM
Hello Leonardo,

It is not possible to export RadGrid in an AJAX request. You should use normal postbacks when using this functionality. Please examine the following links for more information:
Export from ajaxified grid
Export RadGrid content to Excel/Word/CSV/PDF with Ajax enabled

Regards,
Daniel
the Telerik team
Browse the vast support resources we have to jumpstart 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
Leonardo
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or