|
<style>
.e-grid.e-gridhover tr.e-row:hover .e-rowcell:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell),
.e-grid.e-gridhover tr.e-frozenhover {
background-color: blueviolet !important;
}
</style>
|
|
queryCellInfo(args){
if(args.column.field == "CustomerName"){
args.cell.style.backgroundColor = 'wheat';
args.cell.classList.add("customclass"); // add a custom CSS class to the cell which you applied the background color
}
}
|
|
Index.html
<style>
.e-grid.e-gridhover tr.e-row:hover .e-rowcell:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell):not(.customclass), // hovering background color applied to all the cell in a row instead of customclass cell
.e-grid.e-gridhover tr.e-frozenhover {
background-color: blueviolet !important;
}
</style>
|