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
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
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.
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;"
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;"
Does anybody have any idea, what I need to do?
I'm using SmartGWT 2.5 and GWT 2.3.
Comment