This is a migrated thread and some comments may be shown as answers.

Grid PDFExport Column Width

1 Answer 102 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Veteran
Jeff asked on 19 Oct 2020, 04:57 PM

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;
           
        }

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 22 Oct 2020, 08:39 AM

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).

Tags
Grid
Asked by
Jeff
Top achievements
Rank 1
Veteran
Answers by
Eyup
Telerik team
Share this question
or