Data grid 1 back ground color

0
Hi all I am struggling to get something to work which should be easy. I cannot yet switch to use data grid2.   1. I have a data grid and for a cell, i want to drive the background color based on its value (enumeration) 2. With the inspection on the page, I see that the cell points to    3. So I add there a class   It does not work, neither when I put it into the custom-variables scss   Please can some one guide me what i am doing wrong? Thanks Felix    
asked
3 answers
1

Hi Felix,

Where do you get the [Scoring="_1"] selector from? It doesn't look like a valid selector from what I can see. Have you tried

td.Scoringcolor[title="3"] ?

answered
0

Thanks Marius

 

It is coming from an enumeration. I believe I need to use the key, not the value, correct? I tried anyhow with "1" and it did not work.

 

Regards Felix

answered
0

Hi Felix,

I think you can try these options;

1. Give dynamic class in datagrid and add styling in your custom scss file. You can use the dynamic class like "value-four, value-three" and add background styles in your custom scss file. I hope this will work

2. Try with "has selector" and write scss code. This can also work. 

answered