I am trying to apply background colour to some rows dynamically based on some program logic, but I can see that the colour is disspearing on any further row selection.
-- I used two approaches to change the colour.
1) baseGrid.getRowElement(i).getCells().getItem(0).addClassName(<css style>);
2)TableCellElement cell = grid.getRowElement(i).getCells().getItem(colIndex); cell.getStyle().setProperty("background", "#DDDDDD");
Could you please suggest any alternative ways I can do it. so that the background colour of the rows do not change on any further row selection?
Thanks,
Santanu
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment