We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

PDFExport Repeat Headers on next page

Hi, 

I have a PDFExport in one of my grids that I use for generating report data.  I don't seem to be able to configure the export PDF Properties to bring the Header Row column names onto all pages other than the first page.  Is this possible?


1 Reply

VS Vikram Sundararajan Syncfusion Team February 23, 2023 04:35 AM UTC

Hi Kevin,


Greetings from Syncfusion support,


Query: Possible for repeat headers on next page in pdf export


Yes, the column headers can be repeated on subsequent pages during pdf export. This can be accomplished by enabling the "repeatHeader" property in the "pdfHeaderQueryCellInfo" event.


Please see the attached documentation, code example and sample for more information.


Repeat Column Header : https://ej2.syncfusion.com/aspnetcore/documentation/grid/pdf-export/adding-header-and-footer?cs-save-lang=1&cs-lang=razor#repeat-column-header-on-every-page


[CSHTML]

 

function  pdfHeaderQueryCellInfo(args){

args.cell.row.pdfGrid.repeatHeader=true;

} 


If you require further assistance, please do not hesitate to contact us. We are always here to help you.


Regards,

Vikram S.


Loader.
Live Chat Icon For mobile
Up arrow icon