Hi i am using jqgrid for displaying the data and export data to pdf and excel format.i want to add header in each page in pdf and excel sheet i am attached the sample image

I want to add Month,Head1,Head2,Head3 in each page in pdf and excel. i am searched in google but i am unable to find the option to enable repeated header in pdf,excel using jqgrid i am using the following option for exporting pdf and excel
$("#export1").on("click", function(){
$("#year_wise_rep").jqGrid("exportToPdf",{
title: 'jqGrid Export to PDF',
orientation: 'portrait',
pageSize: 'A4',
description: 'description of the exported document',
customSettings: null,
download: 'download',
includeLabels : true,
includeGroupHeader : true,
includeFooter: true,
fileName : "jqGridExport.pdf"
})
});
$("#export2").on("click", function(){
$("#year_wise_rep").jqGrid("exportToExcel",{
includeLabels : true,
includeGroupHeader : true,
includeFooter: true,
fileName : "jqGridExport.xlsx",
maxlength : 40 // maxlength for visible string data
})
}) ;
please guide me to achieve the solution
The degree symbol can be exported if you copy and paste it in your colModel label property. The html tags for degree in pdf does not work. See the demo link below.
It is not possible programmatically to repeat the header table in excel. You may want to look at this solution here
By default a single header is printed repeated in pdf. In your case to print the multiple headers you will need to use onBeforeExport event in pdf export and the property headersRows set to 2. Please see the docs here .
See the example here