This is a migrated thread and some comments may be shown as answers.
Gradient cell background
1 Answer 4 Views
This is a migrated thread and some comments may be shown as answers.
Mats
Top achievements
Rank 1
Mats asked on 06 Apr 2020, 12:45 PM
Hi,

Is there any way of adding gradient cell background to cells within a certain range alternatively adding a specific css class to a certain range?

Best regards,

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 08 Apr 2020, 11:03 AM

Hi Mats,

Gradients are of "image" date type and they do not work for CSS properties of "color" type, e.g. background-color and color. The Spreadsheet Range object's background API method sets the background-color of the cell, so a gradient cannot be used for the mentioned reasons.

With regard to adding a class to a range, there is no API method dedicated to that. If you want to see such functionality added to the Spreadsheet, consider logging this as a feature request in our Feedback Portal.

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.
Asked by
Mats
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or