You can also user the pageTemplate for adding custom content per page.
If you have something different in mind, please do not hesitate to contact us again.
Regards,
Konstantin Dikov
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Thank you for your suggestion. Here the issue is different am having multiple CATEGORY having multiple SUBCATEGRIES. While exportPDF, The table Category contains more than 15 Subcategories records, In the New page will adding the SubCateories without adding Category. We need the functionality like have to add the Category name on top of SubCategory(It will be having inside <td></td> not the <thead></thead>). I am attaching the screen as well, Can you please give a suggestion on this.
Konstantin Dikov
Telerik team
commented on 05 Jan 2022, 09:53 AM
Since the repeatHeaders functionality works by repeating the THEAD element of the table and due to the fact that there could be only one THEAD, the requirement that you have could not be achieved. This is the main reason why exporting hierarchical Grid is not support scenario.
The only solution that I could suggest is to render different structure when you need to export to PDF and generate multiple table elements for each subcategory table and use the PageTemplate to add the main category header manually. Then, you can use the "save" method callback function (which will be called after the export is finished), to change the rendering to the hierarchical one. Another option is to keep the default rendering, but create a separate element on the page just for the export and remove it after the export is finished.