Re: GWT DataGrid background colour for rows

2017-05-30 Thread Thomas Broyer
DataGrid being a "cell widget", it will be "re-rendered" regularly, losing all modifications you manually did to the DOM tree. You can "persist" your changes using setRowStyles for classnames applied to a TableRowElement, or custom column with overridden getCellStyleNames

GWT DataGrid background colour for rows

2017-05-30 Thread Santanu Banerjee
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();