I am want to change the color of selected row of grid (gwt-ext grid) in my application.
For this I have done this:
int rowIndex = getGrid().getStore().indexOf(rec);
Element currentRow = getGrid().getView().getRow(rowIndex);
currentRow.getStyle().setProperty("backgroundColor","red");
But it is permanently changing the color of the row.As I select on another row it previous selected row should be in it previous color.
So I am not getting what to do the change the color of selected row in the gwt-ext grid.
I also want to know how to change the text color of the grid row?
addStyleName("myClass")
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.