PDF Export - long texts cutoff

2 posts, 0 answers
  1. Carlos
    Carlos avatar
    1 posts
    Member since:
    Oct 2020

    Posted 21 Oct 2020 Link to this post


    I have an issue when exporting the grid's content into PDF as rows which contain long texts appear cut off within the same page in the generated PDF. 

    This is my current pdf grid configuration:

           pdf: {
                fileName: "myfile.pdf",
                allPages: true,
                paperSize: "A3",
                margin: { top: "2cm", right: "0.5cm", bottom: "1cm", left: "0.5cm" },
                landscape: true,
                scale: 0.8




    Is there any way to configure the kendo grid in order to export the full content of a row in many pages to avoid cutoffs?




  2. Veselin Tsvetanov
    Veselin Tsvetanov avatar
    1242 posts

    Posted 23 Oct 2020 Link to this post

    Hello Carlos,

    By default, the content of the Grid cells will not have any rule set for their word-wrap CSS property. That would result in longer words being truncated when there is not enough space in the cell. In order to export the full content of each cell, you could set the word-wrap to break-word. To do that on the exported PDF only, you could apply the following CSS rule:

    .k-pdf-export .k-grid-content td[role="gridcell"] {
      word-wrap: break-word;

    Here is a small sample, which implements the above suggestion, as well as the PDF configuration, sent along with your initial post:


    I hope that the above helps. If you have any other questions, please do not hesitate to contact us.

    Veselin Tsvetanov
    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/.

Back to Top