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

Export To pdf

2 Answers 57 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Amarnath
Top achievements
Rank 1
Amarnath asked on 17 Dec 2010, 06:32 AM
how to set the cell alignment in export pdf

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 17 Dec 2010, 10:36 AM
Hello,

I believe the following links will be helpful in styling exported file.
PDF export
Word/Excel export (HTML-based)


-Shinu.
0
Daniel
Telerik team
answered on 17 Dec 2010, 03:56 PM
Hello Amarnath,

You can use the following approach:
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
{
    if (e.Item is GridDataItem && isExport)
        e.Item.Style["text-align"] = "center";
}

Best 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
Amarnath
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Daniel
Telerik team
Share this question
or