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

RadGrid Export to PDF no Wrapping Column

1 Answer 285 Views
This is a migrated thread and some comments may be shown as answers.
Marlon Santos
Top achievements
Rank 1
Marlon Santos asked on 20 Jul 2010, 09:13 PM

I am trying to export the contents of a RadGrid to PDF but one of the rows has a cell with a long text. When I export it to PDF that cell spans across multiple columns. I tried to set the wrap mode to true but it still didn't work. See code snippet below:


private void ConfigurePDFExport()




this.RadGridStaff.ExportSettings.OpenInNewWindow = true;



this.RadGridStaff.ExportSettings.ExportOnlyData = true;



this.RadGridStaff.ExportSettings.IgnorePaging = true;



this.RadGridStaff.ExportSettings.Pdf.PageTitle = "Staff Test";



this.RadGridStaff.ExportSettings.Pdf.PageHeight = Unit.Parse("210mm", CultureInfo.InvariantCulture);



this.RadGridStaff.ExportSettings.Pdf.PageWidth = Unit.Parse("297mm", CultureInfo.InvariantCulture);



this.RadGridStaff.MasterTableView.Columns.FindByUniqueName("EditCommandColumn").Visible = false;



this.RadGridStaff.MasterTableView.Columns.FindByUniqueName("IssueColumn").Visible = false;



this.RadGridStaff.ExportSettings.FileName = "Staff";



"LastName").ItemStyle.Wrap = true;

If anyone knows how to fix this problem, please let me know.




1 Answer, 1 is accepted

Sort by
Telerik team
answered on 20 Jul 2010, 09:59 PM
Hello Marlon,

Unfortunately there is no way to force text wrapping out-of-the-box if there is no white space in the cell's text. I recommend that you try the suggestions (How to fit XX columns on my page?) listed in the Q&A section in our PDF documentation:
PDF export help topic

Best regards,
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Asked by
Marlon Santos
Top achievements
Rank 1
Answers by
Telerik team
Share this question