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

RadGrid Export PDF Footer

2 Answers 55 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ronak
Top achievements
Rank 1
Ronak asked on 15 Oct 2011, 07:35 AM
Hello Experts,

I have added  footer part in my rad grid & i want to display it in PDF file.

If TypeOf e.Item Is GridFooterItem Then
Dim footer As GridFooterItem = CType(e.Item, GridFooterItem)
footer("Duration_Hours").Controls.Add(New LiteralControl("<span dir ='rtl' style='color: Black; font-weight: bold;'>Total Hours : " & lblTotalhours.Text & "</span> ")
End If

Is it possible to display Rad grid footer part in PDF file???

Thank You,
Ronak.


 

2 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 15 Oct 2011, 10:04 AM
Hello,

protected void grdCompCliente_PdfExporting(object sender, GridPdfExportingArgs e)
  {
      string str = "<div>your Footer here</div>";
      e.RawHTML = e.RawHTML + str;
  }


Thanks,
Jayesh Goyani
0
Ronak
Top achievements
Rank 1
answered on 17 Oct 2011, 05:32 AM
Hi Jayesh Goyani,

I am glad, it's work for me. 
Thank you so much.

Ronak.
Tags
General Discussions
Asked by
Ronak
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Ronak
Top achievements
Rank 1
Share this question
or