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

defaultCellStyle px vs pt inconsistencies

1 Answer 93 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 09 Jan 2018, 04:25 PM
It doesn't seem to be possible to make the exported Excel spreadsheet look the same as the kendo spreadsheet.  Excel goes by pt whereas the browser goes by px.  So setting "defaultCellStyle": {"fontFamily": "Arial","fontSize": "12"} makes the browser spreadsheet look like I want it, but when exporting to Excel it is interpreting it as 12pt, which is a much larger font than it should be and the values in cells turn to #####.  An Arial 12px in the browser should be equivalent an Arial 9pt in Excel.

I have tried doing like "fontSize": "12pt", but that causes an error in the exported Excel file.

It seems like the best way to handle this would be to allow us to specify "fontSize": "12pt", or add like "fontUnit": "pt" so that the browser css user pt instead of px.  Or a way to specify two different defaultCellStyle fontSizes, one for browser spreadsheet and one for exports. 

See attached picture as example of browser vs export.

1 Answer, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 11 Jan 2018, 12:05 PM
Hi Ryan,

Thank you for the detailed explanation of the case and for the suggested improvement of the Spreadsheet widget. You are correct, that the Kendo Spreadsheet will always interpret the fontSize in px units.

Therefore, I would recommend you to log your idea on our Feedback portal. Based on the support it receives from the community, we will decide on whether to proceed with its implementation or not.

Regards,
Veselin Tsvetanov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Spreadsheet
Asked by
Ryan
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Share this question
or