How to change the background color using the Dynamic row class

1
About Dynamic row class that can be set in DataGrid2 Here's what we want to achieve. If the checkbox is yes, the background color of the row will be changed to blue. If the checkbox is no, the background color of the row will remain unchanged. I'm using the Dynamic row class, but it doesn't work as expected. If you have any knowledge, please help me.   Execution Result ↓ Text thickness changes, but background color does not change.   css settings ↓   Dynamic row class settings ↓
asked
2 answers
1

If the text thickness changes the class is applied and should work. The only thing I could think of right now why the background doesn’t change is because it was set before in a styling sheet more important than yours.

Have you tried using “!important” for the background? (background-color: lightblue !important;) Maybe this works

answered
1

You can try something like this.

 

.datagrid2{

    &:hover,&:focus,&:active{
        background-color: lightblue;
	    font-weight: bold;
    }
}

 

answered