DataGrid2 - Dynamic row backgorund color.

0
Hi,    I am trying to dynamically change the background color of the rows in datagrid 2. For this I have created a new class and if the condition is true I call that class.  Calling this class changes the font color but not the background color.   This is the class I am using  .caducada { background-color: greenyellow !important; color: red; }   Dynamic row class: if $currentObject/FECHA_CADUCIDAD >=  [%CurrentDateTime%]  then ' ' else 'caducada'
asked
2 answers
0

please give more specificity to css and it will work

similer to:

 .table .table-content .tr.CUSTOM_CLASS_NAME .td {

  1. background-color: pink;

}

it worked for me.

i would say inspect the current css and then decide how to add more specificity.

 

answered
0

Hello Mikel,

 

Please try the following structure:

.caducada {
      .td {
        background-color: yellow;
      }
 }

 

answered