
|
<e-column field="X2" type="number" format="C2" width="120" textAlign="Right"></e-column>
|
|
// customize the selected row style
.e-grid td.e-active {
background: #22b24b;
font-weight: bold;
}
// customize the grid content style
.e-grid .e-rowcell,
.e-grid .e-row .e-detailrowcollapse {
background: rgb(224, 224, 224);
border-color: rgb(0, 0, 0);
font-family: serif;
font-style: italic;
font-weight: bold;
}
//customize the header background
.e-grid .e-headercell,
.e-grid .e-detailheadercell {
background: blue;
}
// customize the grid header content style
.e-grid .e-headertext {
font-weight: bold;
font-size: 15px;
font-family: serif;
font-style: italic;
color: white;
}
|
|
queryCellInfo: function(args) {
switch (+args.cell.getAttribute("index") % 3) {
// adding a custom class to the grid cells
case 1:
args.cell.classList.add("customclass1");
break;
case 2:
args.cell.classList.add("customclass2");
break;
default:
args.cell.classList.add("customclass3");
break;
}
}
},
</script>
<style>
//customize grid cell’s content styles using the custom classes
.customclass1 {
font-weight: bold;
}
.customclass2 {
color: #66DA26 !important;
}
.customclass3 {
color: #2E93fA !important;
}
</style>
|