all is it possible to color a certain Row in smartGWT listGrid ? i want to color just 1 row , not all the listGrid
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
In SmartGWT, methods that end with Style (e.g.- getStyle, getBaseStyle, getCellStyle, etc.) need to return a CSS class defined elsewhere (.css file, inline css in application load jsp, etc.).
Same applies for setStyle methods.
Unless lot of CSS customizations are done warranting the need for such, using getCellCSSText would probably be the best option.
getCellCSSText returns CSS text per cell, and will be called during every redraw.
Its not required to extend ListGridRecord as indicated in showcase sample linked above, unless there are other reasons to do so.
Never used SmartGWT, but looking at the JavaDoc, I'd say:
listGrid.getRecord(recordNum)
setCustomStyle(String customStyle)
setAttribute(String property, BaseClass value)
Also checkout this sample, that overrides the
getBaseStyle()
of theListGrid
.