My Code:
<ejs-grid id="grid" dataSource="ViewBag.dataSource" queryCellInfo="customiseCell" ..
<e-grid-column field="UmsatzVj" headerText="UmsatzVj" format="N0" textAlign="Right" width="150"></e-grid-column>
<script>
function customiseCell(args) {
if(args.column.field > 'UmsatzVj') {
if (args.data['UmsatzVj'] < 0) {
args.cell.classList.add('below-0');
} else {
args.cell.classList.add('above-0');
}
}
}
</script>
<style>
below-0{
color:red;
}
above-0 {
color: black;
}
</style>
What's wrong???