Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Problem with getCellCSSText

$
0
0
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 :
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 "";
                        }
}


Attached Images
File Type: png screenshot.png (2.3 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles