Servoy 7 onRender

Having so much trouble with Servoy 6 (printing, size of dialogs) I have jumped to Servoy 7.4.4 where the former problems are corrected. Spent a lot of time changing over from rowBackgroundCalculation to onRender to get ready for this, and now all of my onRenders are changing foreground colors when they are explictly set to change bgcolor (and do change bgcolor in Servoy 6). Help?:

if (event.isRecordSelected()) {
		event.getRenderable().bgcolor = '#00ff00';
	} else if (event.getRecordIndex() % 2) {
		event.getRenderable().bgcolor = '#ff0000';
	}

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

It looks like your fields are set to transparent.

Having said that, a better approach to do row coloring is by using styles. Just add this to your style sheet:

odd {
	background-color: #ffffff;
}

even {
	background-color: #ff0000;
}

selected {
	background-color: #00ff00;
}

This will be more efficient, because the onRender method will be called for every cell on your form.