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

Export Radgrid with detailstables

3 Answers 113 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ashtiaq
Top achievements
Rank 1
Ashtiaq asked on 19 Oct 2011, 12:14 PM
Hi, 

Is it possible to export een radgrid with detailtabels to a pdf.
The detailtables are shown (decollapsed) so the pdf that wil be generated is shown with the detailtabels.

greetings

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 19 Oct 2011, 12:25 PM
Hello Ashtiaq,

In order to show detail tables when exporting to pdf, set HierarchyDefaultExpanded as true. Hope this helps.

C#:
protected void pdfExport_Click(object sender, EventArgs e)
{
RadGrid1.MasterTableView.HierarchyDefaultExpanded = true;
}

Thanks,
Princy.
0
Ashtiaq
Top achievements
Rank 1
answered on 19 Oct 2011, 04:07 PM
Thanks, it worked.

I'm still facing with problem. The problem is following.
In the PDF i don't get de table layout properly. All the info is just display in one rectangular. No formatting or gridlines of the radgrid.
0
Princy
Top achievements
Rank 2
answered on 20 Oct 2011, 08:39 AM
Hello Ashtiaq,

Try setting the property GridLines for RadGrid and set TableLayout as Fixed for getting the table layout when exporting to pdf.

aspx:
<telerik:RadGrid ID="RadGrid1" GridLines="Both" DataSourceID="SqlDataSource1" runat="server">
  <MasterTableView TableLayout="Fixed" Width="100%">
    . . .
  <MasterTableView>
<telerik:RadGrid>

Thanks,
Princy.
Tags
Grid
Asked by
Ashtiaq
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Ashtiaq
Top achievements
Rank 1
Share this question
or