Unplanned
Last Updated: 16 Mar 2020 13:31 by ADMIN
Antoniy
Created on: 14 Mar 2020 01:18
Category: SpreadProcessing
Type: Bug Report
0
SpreadProcessing: Setting CellSelection`s SetIsBold() to true resets the Font size in the selection to DefaultFontSize after export, if the FontSize is set from a cell styles

Setting SetIsBold method to true on a CellSelection, resets the font size of those cells to 11 points.
See the generated file of the attached program.
Cells C1:F1 have font size 11 instead of expected 9.

 

PS: Is it really necessary to have a support plan to report bugs?

Attached Files:
1 comment
ADMIN
Martin
Posted on: 16 Mar 2020 13:31

Hi Antoniy,

Thank you for the provided detailed feedback. I am logging this issue in our backlog.

Your Telerik points are updated as a token of appreciation for bringing this issue to our attention.

Until this issue is fixed, I would like to suggest to store the CellSelection`s Font size and after setting the font of the selection to bold to set the font size back to its initial value. There are two possible workarounds:

  1. If the Font size of all the cells in the selection is the same:
    RangePropertyValue<double> cellSelectionFontSize = range.GetFontSize();
    range.SetIsBold(true);
    range.SetFontSize(cellSelectionFontSize.Value);
  2. Else the cellSelectionFontSize.Value will return again the DefaultFontSize (11). An alternative approach, in this case, is to store every single Cell`s Font size in the selection.

As a side note: If you use the feedback portal to report bugs it is not required to have a subscription.

Regards,
Martin
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.