I've seen about 20 solutions posted for this problem, yet none of the
solution actually ever address the question :)
If I have a certain piece of data, say a priority #.. it can range
from 0 to 5.
I want to change the background color, of an entire row, based on the
priority value (so a single cell value).
I've seen this question posed numerous times, and never are any of the
solutions actually posted to really address this problem.
for example, i've seen this:
grid.setView(new GridView() {
public String getRowClass(Record record, int index)
{
GWT.log(record.getId(), new Throwable());
String[] fields = record.getFields();
for (int i=0; i < fields.length; i++) {
GWT.log(fields[i], new Throwable());
}
float price = record.getAsFloat("price");
if(price <20) {
return "yellowClass";
} else if (price < 40) {
return "orangeClass";
} else if (price < 80) {
return "blueClass";
} else { return "greenClass"; }
}
});
But adding this code.. I mean, the GWT.log's never even show up.. so
the above solution, posted many many times, actually works 0%.
I imagine what i'm asking, is a trivial thing, but since GWT & GWT-EXT
have *very very very very* little documentation.. any help would be
greatly appreciated.
Thanks,
Roger
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---