GRID : paint cell grid - pintar una celda de un grid
GRID - pintar un cell.txt
GRID : paint cell grid
Default
You can set the CellFormatter of a TreeGridField/ListGridField.
Code:
myField.setCellFormatter(new CellFormatter() { public String format(Object value, ListGridRecord record, int rowNum, int colNum) {
//define your condition here if (condition) {
return "<div class=\"myClass\">"+ value + "</div>";
}
//define your condition here else if (condition) { //... } else { return ""+value; }
}
});
And in your CSS file:
Code:
.myClass { background-color: blue; }
.myClass
{
background-color: blue;
}
pintar una celda de un grid
GRID : paint cell grid
Default
You can set the CellFormatter of a TreeGridField/ListGridField.
Code:
myField.setCellFormatter(new CellFormatter() { public String format(Object value, ListGridRecord record, int rowNum, int colNum) {
//define your condition here if (condition) {
return "<div class=\"myClass\">"+ value + "</div>";
}
//define your condition here else if (condition) { //... } else { return ""+value; }
}
});
And in your CSS file:
Code:
.myClass { background-color: blue; }
.myClass
{
background-color: blue;
}
pintar una celda de un grid
Comments
Post a Comment