Re: Grid: Customizing cell CSS based on property value

2010-04-01 Thread Dmitry Gusev
Give it another try, like this: table.t-data-grid tbody tr td.lastPingSummary { /* here may be selector for your column */ padding: 0px; /* remove padding from all column cells to avoid left and right space */ } .red { background-color: red;

Re: Grid: Customizing cell CSS based on property value

2010-04-01 Thread Stephan Windmüller
Am 01.04.2010 12:28, schrieb matias.blasi: page.tml: ${o.someproperty} app.css: .somestyleclass { background-color:red; width: 100%; height: 100%; } doesn't it works? No, this was my first try. ;) - Stephan ---

Re: Grid: Customizing cell CSS based on property value

2010-04-01 Thread matias.blasi
page.tml: ${o.someproperty} app.css: .somestyleclass { background-color:red; width: 100%; height: 100%; } doesn't it works? Stephan Windmüller-8 wrote: > > On 31.03.2010 20:31 matias.blasi wrote: > >> Although Tapestry Grid don't allow you to specify cell CS

Re: Grid: Customizing cell CSS based on property value

2010-04-01 Thread Stephan Windmüller
On 31.03.2010 20:31 matias.blasi wrote: Although Tapestry Grid don't allow you to specify cell CSS style, you can do something like this: ${o.someproperty} Of course, but I want to change the background-color of the whole cell. - Stephan --

Re: Grid: Customizing cell CSS based on property value

2010-03-31 Thread matias.blasi
Hi! Although Tapestry Grid don't allow you to specify cell CSS style, you can do something like this: ${o.someproperty} Don't you? Regards. Matías. Thiago H. de Paula Figueiredo wrote: > > On Wed, 31 Mar 2010 09:21:04 -0300, Stephan Windmüller > wrote: > >> On 30.03.

Re: Grid: Customizing cell CSS based on property value

2010-03-31 Thread Thiago H. de Paula Figueiredo
On Wed, 31 Mar 2010 09:21:04 -0300, Stephan Windmüller wrote: On 30.03.2010 16:34 Thiago H. de Paula Figueiredo wrote: Is it possible to change the class of a grid cell (not just the row or column) based on the value of the property? Yes! Just use the rowClass parameter. But this changes

Re: Grid: Customizing cell CSS based on property value

2010-03-31 Thread Stephan Windmüller
On 30.03.2010 16:34 Thiago H. de Paula Figueiredo wrote: Is it possible to change the class of a grid cell (not just the row or column) based on the value of the property? Yes! Just use the rowClass parameter. But this changes only the class of the tr element like: ... What I want

Re: Grid: Customizing cell CSS based on property value

2010-03-30 Thread Thiago H. de Paula Figueiredo
On Tue, 30 Mar 2010 11:28:38 -0300, Stephan Windmüller wrote: Hi! Hi! Is it possible to change the class of a grid cell (not just the row or column) based on the value of the property? Yes! Just use the rowClass parameter. For example I want to display all cells with the String "Corre

Grid: Customizing cell CSS based on property value

2010-03-30 Thread Stephan Windmüller
Hi! Is it possible to change the class of a grid cell (not just the row or column) based on the value of the property? For example I want to display all cells with the String "Correct" green and those with "Incorrect" in red. TIA Stephan ---