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";
RadGridStaff.MasterTableView.GetColumn(
"LastName").ItemStyle.Wrap = true;
}
If anyone knows how to fix this problem, please let me know.
Thanks,
Marlon.