Closed GoogleCodeExporter closed 9 years ago
Override getRowClass in GridView. See sample :
http://gwt-ext.googlecode.com/svn/trunk/site/samples/Showcase/Showcase.html#rowR
enderingGrid
grid.setView(new GridView() {
public String getRowClass(Record record, int index) {
float price = record.getAsFloat("price");
if(price <20) {
return "yellowClass";
} else if (price < 40) {
return "orangeClass";
} else if (price < 80) {
return "blueClass";
} else {
return "";
}
}
});
Original comment by sanjiv.j...@gmail.com
on 23 Oct 2007 at 2:43
Original issue reported on code.google.com by
timothyi...@hotmail.com
on 6 Sep 2007 at 2:29