Grid PDFExport Column Width

2 posts, 0 answers
  1. Jeff
    Jeff avatar
    18 posts
    Member since:
    May 2012

    Posted 19 Oct 2020 Link to this post

    I've implemented PDF export functionality with a Grid. I'm trying to set the column width (auto)  for one of columns of the report that gets generated because the some values in the column of the report are being truncated, or not seen in the PDF. I've tried

     

    /* doesn't work */

     .k-pdf-export colgroup > col {
            width: auto !important;
        }

    /* doesn't work */

    .k-pdf-export colgroup > col:nth-child(2) {           
                word-wrap: break-word; 
            }

    /* makes the column as large as the report, completely useless */

     .k-pdf-export colgroup > col:nth-child(2) {
                width: 100% !important;            
            }

     

    /* this works!  But I don't want to hard code in a value */

     .k-pdf-export colgroup > col:nth-child(2) {
                width: 200px  !important;
               
            }

     

     

     

     

     

  2. Eyup
    Admin
    Eyup avatar
    4074 posts

    Posted 22 Oct 2020 Link to this post

    Hello Jeff,

     

    This could be fixed, but first we will need the exact context in order to reproduce the issue our side. Could you modify the following live sample to demonstrate the problem and send the new URL back to us for further investigation?
    https://dojo.telerik.com/OVuHOtIy

     

    Regards,
    Eyup
    Progress Telerik

    Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).

Back to Top