Page number in export

5 posts, 1 answers
  1. Ryann
    Ryann avatar
    38 posts
    Member since:
    Sep 2013

    Posted 11 Sep 2013 Link to this post

    Hi ,
     I am trying to export my grid to pdf, i want to set page number to the exported page.please help..

    Thanks,
    Ryann

  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 11 Sep 2013 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ryann
    Ryann avatar
    38 posts
    Member since:
    Sep 2013

    Posted 20 Sep 2013 Link to this post

    Thanks princy.
  5. Padam
    Padam avatar
    1 posts
    Member since:
    Mar 2013

    Posted 12 Dec 2014 Link to this post

    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.
  6. Daniel
    Admin
    Daniel avatar
    4946 posts

    Posted 17 Dec 2014 Link to this post

    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.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017