CSS Row Colouring

Using the example CSS Row colouring (from the WIKI) in a web client, I noticed that where there are dates in the row, the top row always shows the dates text in white?

It’s not the data because sorting the rows shows the date text in black again. and the new top row (not selected) has the text in white (unreadable).

Is this a bug?

Hi,

Alternating rowcolors are easier than ever to implement in Servoy 6. Just add an onRender method to your form and the following default code is added:

[attachment=2]onrender_default.png[/attachment]

Change the colors to your liking and that’s it.

SmartClient:

[attachment=1]onrender_sc.png[/attachment]

WebClient:

[attachment=0]onrender_wc.png[/attachment]

Note that this not just useful for alternating rowcolors but can be used to create lots of nifty coloring code.

Omar,

for alternate rowcoloring, the CSS way is preferred, instead of doing onRender! (which is much more expensive!)

Ok, thx Harjo! And did you notice any side effects like mentioned by Kahuna?

omar:
Ok, thx Harjo! And did you notice any side effects like mentioned by Kahuna?

I actually did. I can’t understand the reason why but every now and then rows don’t get coloured, being rendered completely white instead. One curious thing is buttons get their background coloured right…

studiomiazzo:
I actually did. I can’t understand the reason why but every now and then rows don’t get coloured, being rendered completely white instead. One curious thing is buttons get their background coloured right…

Did you try this in 6.1.0? There is a fix for this problem in 6.1 rc4 and higher and 6.0.7 (which will be released soon).