I want to override the background color of the TreeGrid object (and other default styles). But it doesn't let me change the default css.
TreeGrid grid = new TreeGrid();
grid.removeStyleName("listGrid");
OR
TreeGrid grid = new TreeGrid();
grid.removeStyleName(grid.getStyleName());
This code doesnt seem to work. The stylename remains the same. I think I'm missing something but I cant seem to figure it out. Also if I set another stylename for the widget it keeps the default stylename.
Thanks in advance!