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

Page number in export

4 Answers 216 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ryann
Top achievements
Rank 1
Ryann asked on 11 Sep 2013, 11:05 AM
Hi ,
 I am trying to export my grid to pdf, i want to set page number to the exported page.please help..

Thanks,
Ryann

4 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 11 Sep 2013, 11:16 AM
Hi Ryann,

From Q2 2013 PDF export supports header and footer. PageFooter elements contains the footer cells and they are applicable to ExportSettings-Pdf tab. The supported child properties for the both elements are LeftCell, MiddleCell, RightCell which contain the cell text and text alignment properties. Apart from the plain text, the cell text property can contain HTML code, and a special tag <?page-number?> which can be used to display the current page's number.

ASPX:
<telerik:RadGrid ID="RadGrid1" runat="server" . . . >
<ExportSettings>
  <Pdf>                 
  <PageFooter>
       <MiddleCell Text="<?page-number?>" />
  </PageFooter>
  </Pdf>
</ExportSettings>
  <MasterTableView CommandItemSettings-ShowExportToPdfButton="true"  CommandItemDisplay="Top">           
  </MasterTableView>
</telerik:RadGrid>

Thanks,
Princy
0
Ryann
Top achievements
Rank 1
answered on 20 Sep 2013, 05:50 PM
Thanks princy.
0
Padam
Top achievements
Rank 1
answered on 12 Dec 2014, 09:45 PM
How can I get page numbers in  'Page 1 of n' format? i.e., I need to know the total number of pages in the report as well as the current page number? This is important for reporting purposes. Please let us know.
0
Daniel
Telerik team
answered on 17 Dec 2014, 10:00 AM
Hello Gregory,

I'm afraid it is not possible to display the total number of pages when exporting to PDF format. I would suggest that you fill a feature request in our feedback portal.
Please accept our apologies for any inconvenience caused.

Regards,
Daniel
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Ryann
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Ryann
Top achievements
Rank 1
Padam
Top achievements
Rank 1
Daniel
Telerik team
Share this question
or