This question is locked. New answers and comments are not allowed.
Hi,
I'm trying to export a RadGrid with NestedViewTemplate into PDF. But the NestedViewTemplate values are not being exported for some reason. I'm creating the RadGrid from code behind on PageLoad(). I tried all the suggestions made on different telerik forums but none of them works for me.
Here is my code ....
void ExportToPDF()
{
this.rGrid.MasterTableView.AllowFilteringByColumn = false;
//this.rGrid.ExportSettings.IgnorePaging = true;
this.rGrid.ExportSettings.ExportOnlyData = false;
this.rGrid.ExportSettings.Pdf.PageWidth = Unit.Pixel(1800);
this.rGrid.ExportSettings.OpenInNewWindow = true;
this.rGrid.GridLines = GridLines.None;
this.rGrid.BorderStyle = BorderStyle.None;
this.rGrid.MasterTableView.BorderStyle = BorderStyle.None;
rGrid.ClientSettings.Scrolling.AllowScroll = false;
rGrid.ClientSettings.Scrolling.UseStaticHeaders = false;
rGrid.MasterTableView.HierarchyDefaultExpanded = true;
this.rGrid.MasterTableView.ExportToPdf();
}
Please help
I'm trying to export a RadGrid with NestedViewTemplate into PDF. But the NestedViewTemplate values are not being exported for some reason. I'm creating the RadGrid from code behind on PageLoad(). I tried all the suggestions made on different telerik forums but none of them works for me.
Here is my code ....
void ExportToPDF()
{
this.rGrid.MasterTableView.AllowFilteringByColumn = false;
//this.rGrid.ExportSettings.IgnorePaging = true;
this.rGrid.ExportSettings.ExportOnlyData = false;
this.rGrid.ExportSettings.Pdf.PageWidth = Unit.Pixel(1800);
this.rGrid.ExportSettings.OpenInNewWindow = true;
this.rGrid.GridLines = GridLines.None;
this.rGrid.BorderStyle = BorderStyle.None;
this.rGrid.MasterTableView.BorderStyle = BorderStyle.None;
rGrid.ClientSettings.Scrolling.AllowScroll = false;
rGrid.ClientSettings.Scrolling.UseStaticHeaders = false;
rGrid.MasterTableView.HierarchyDefaultExpanded = true;
this.rGrid.MasterTableView.ExportToPdf();
}
Please help