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

[Solved] RadGrid PDF Export with NestedViewTemplate issue

0 Answers 26 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dawit
Top achievements
Rank 1
Dawit asked on 21 Feb 2013, 05:24 PM
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
Tags
Grid
Asked by
Dawit
Top achievements
Rank 1
Share this question
or