Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Have manual style shine through ListGrid overlays

    Hi,

    In my app, there is a grid that is indicating status of several processes. Rather than showing a value, it uses a custom base style to indicate the status using a color.
    I.e. the listGrid overrides
    Code:
    protected String getBaseStyle(ListGridRecord record, int rowNum, int colNum) {
    to return a status specific CSS (color).
    However,the color is covered by other ListGrid overlays (selections and the stripes added to every 2nd row by default).
    Is there a way to let the actual status color somehow "shine through" of these overlays (maybe by configuring the transparency of them)?

    Thanks
    fatzopilot

    #2
    OK,

    adding several CSS suffixes solved the problem. First there was only
    Code:
    .cellBackgroundRed{
        background-color:#FF9494;
    }
    in the CSS. Now there is
    Code:
    .cellBackgroundRed,
    .cellBackgroundRedDark,
    .cellBackgroundRedOver,
    .cellBackgroundRedOverDark,
    .cellBackgroundRedSelected,
    .cellBackgroundRedSelectedDark,
    .cellBackgroundRedSelectedOver,
    .cellBackgroundRedSelectedOverDark{
        background-color:#FF9494;
    }
    Imo a very nice way to solve the issue :)

    Cheers
    fatzopilot

    Comment

    Working...
    X