Announcement

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

    How to set a margin in ListGrid cell

    I'm using ListGrid.getCellCSSText to change the appearance for individual fields of my grid, based on some data properites.

    For example, in some cases I would like to draw a border around the cell. This works when I return
    Code:
    "border: solid grey 1px;"
    But unfortunately this results in the boxes of the cells being drawn such that they "touch" each other which doesn't look very nice.
    So I would like to add a (top-)margin to the style of the cell so that the borders are drawn with some space between the cells. If I return
    Code:
    "border: solid grey 1px; margin: 1px;"
    the margin is ignored. I checked the cell style with Firebug and for some reason the margin is set to 0, ie overwritten from something else.

    Does anybody have any idea, what I need to do?

    I'm using SmartGWT 2.5 and GWT 2.3.

    #2
    add getCSSText() method which will return the css style text to be set in the cells.

    Comment

    Working...
    X