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

autoFitColumns being minimized when exported as PDF?

1 Answer 213 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nicholas
Top achievements
Rank 1
Nicholas asked on 26 Mar 2020, 10:46 PM

I have a grid with 5 columns, 4 of which are set to autoFitColumn.  When in the normal view, they are behaving as expected - resizing to fit the needs of the text contained in them.

When I export the view to a PDF though, it is completely minimizing the autofit columns down to a tiny size.  When I apply the autoFitColumn to the grid as a whole, the columns are not necessarily auto-fitting, instead having parts of text cut off on the longer columns, while leaving the other smaller columns with a bunch of white space.

Attached image shows what I'm trying to say here.  What I'm trying to get is those 4 columns to be autoFit and still show up properly when exported to PDF.  OR for the "all columns autofit" to stop giving all the whitespace to the small columns so that it isn't cutting off the text of the larger ones.

Thanks

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 30 Mar 2020, 02:32 PM

Hello Nicholas,

Here's a dojo example, in which 4 of the 5 columns in a Grid are set to autoFit: https://dojo.telerik.com/eZACibiR/2

The columns look properly in the exported pdf file.

Could you modify the example accordingly so that it demonstrates the problematic behavior?

Regards,
Ivan Danchev
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Grid
Asked by
Nicholas
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or