I have a ListGrid that i need to color theses lines, but the first column still uncolored ! until i overflew the line with the mouse
This is my code :
This is my code :
Code:
protected String getCellCSSText(ListGridRecord record, int rowNum,int colNum) {
BorsRecord borsRecord = (BorsRecord) record;
// Appliquer une couleur a la ligne fin
int rowCount = this.getRecords().length;
int lastRow = (rowCount - 1);
if (getFieldName(colNum).equals("code")) {
if(borsRecord.getAttribute("codeCouleur").equals(
GeneralConstants.RED_COLOR)) {
return "font-weight:bold; color:red;";
} else if (borsRecord.getAttribute("codeCouleur").equals(
GeneralConstants.GREEN_COLOR)) {
return "font-weight:bold; color:green;";
} else {
return "";
}
}