I'm using Smart GWT version 4. I want to change the text color of selected record on record click action. I cannot find a way to do it using "setHilites" method or anything else. How can I achieve this?
If you go by the BaseStyle way, its something like this.
@Override
protected String getBaseStyle(ListGridRecord record, int rowNum, int colNum){
if (listGrid.getSelectedRecord() == record){
return "custom-color-CSS";
}
return super.getBaseStyle(record, rowNum, colNum);
}
}