i am using telerik ajax dll version (Telerik.web.ui.dll) 2019.1.215.45 in asp.net application. i have dynamically created radgrid which has more than 70 rows, so when i am trying to export radgrid to pdf using RadClientExportManager [exporting html content to pdf]. The lengthy radgrid is not continuing to next page in pdf. the first 50 rows are printed in first page the rest of the rows are not getting printed in second page.
4 Answers, 1 is accepted
The page break export of the RadGrid needs custom implementation and taking into consideration the height of the row requires custom logic depending on the requirements.
Here is a CodeLibrary project that shows how to add the page break: https://www.telerik.com/support/code-library/page-for-client-side-export.I have modified the addPageBreakSelectorsToGrid function to add a page break based on the height of the rows. Attached is the sample project I used to test this functionality.
Let me know if you have any other questions related to the built-in functionality and API of our controls.
thank you for you reply. for now I am using window.print(). let me try your reply in future and will get back to you. :)
There is a built-in ClientSettings-EnableClientPrint functionality that autobreaks the Grid but does not add the headers on every page.
Also, the ClientExportManager and the RadGrid are two different controls, so additional code is needed to achieve such a customization.
The good thing is that the code is already available and what you need to do to have the functionality is just to paste and reuse the code.