Hi,
I'm exporting telerik grid to pdf which is working fine. However resizing of columns on pdf file is not working. Below is the function I use to resize the columns.
I'm exporting telerik grid to pdf which is working fine. However resizing of columns on pdf file is not working. Below is the function I use to resize the columns.
public
void ConfigureExport()
{
RadGrid1.ExportSettings.ExportOnlyData =
true;
RadGrid1.ExportSettings.IgnorePaging =
true;
RadGrid1.ExportSettings.OpenInNewWindow =
true;
RadGrid1.Columns.FindByUniqueName(
"PageNo").Display = false;
RadGrid1.Columns.FindByUniqueName(
"Mandatory").Display = false;
RadGrid1.Columns.FindByUniqueName("Question").ItemStyle.Width = Unit.Percentage(90);
RadGrid1.MasterTableView.GetColumn(
"Question").ItemStyle.Width = Unit.Percentage(90);
RadGrid1.Columns.FindByUniqueName(
"Answer").ItemStyle.Width = Unit.Percentage(10);
foreach (GridDataItem item in RadGrid1.Items)
{
item.Style[
"font-size"] = "4px";
item.Style[
"font-family"] = "Courier New"; //Set UNICODE font
item.Style[
"text-align"] = "center";
}
}
Thanks.