I use smartgwt 2.4.
I'm trying to style a ListGridRecord
. I want to get the Canvas component of it, but I cannot find a reference anywhere.
I know there are methods in ListGrid
as createRecordComponent
or getBackgroundComponent
etc., but these don't return any component. They are meant as an override point (user can define his/her own components instead of default). But this is not what I want. I want to get the default component and change it (style it).
I know there's a setCellFormatter
method at the ListGrid
, where I can set format of a cell, but it only regards the text component of a cell, not the whole row (record).
I know there's a getBaseStyle
method, where I can put a class name, but this is still not what I want. I want to change the style dynamically (e.g. I want to put any background color to the component) not only put a static class(es) (where the background color is predefined).
Can anybody help? Thanks.