This question is locked. New answers and comments are not allowed.
Hi all,
I have a Telerik grid in ASP.NET MVC 3 with a money column. I've formatted the color of the cell to green using this javascript:
How can I do the same for the Aggregates row, and make the negative values appear in red and the positive values in green?
How do I replace the $ sign with a € sign?
I have a Telerik grid in ASP.NET MVC 3 with a money column. I've formatted the color of the cell to green using this javascript:
<script type="text/javascript"> function onRowDataBound(e) { if (e.dataItem.Amount < 0) { e.row.cells[2].innerHTML = e.row.cells[2].innerHTML.replace("-", ""); e.row.cells[2].style["color"] = "red"; } else { e.row.cells[2].style["color"] = "green"; }}</script>How can I do the same for the Aggregates row, and make the negative values appear in red and the positive values in green?
How do I replace the $ sign with a € sign?