I am upgrading my solutions to Servoy 6.1 and having trouble getting the same functionality I had from rowBGColorCalculation using CSS and/or onRender. In my solutions, I have some forms where I want the row background to alternate and the selected row to be a different color, and achieving that is easy enough using the odd, even, selected example in the style sheet. The problem is that I also have forms where I want to list records and not alternate the background, and rows where I do not want to alternate the background, but want to change the color for the selected record. Without the ability to specify a unique rowBGColorCalculation for individual forms, I am not sure how this is done anymore.
I can see how creating individual styles for the various types of list forms would be one method, but that seems inefficient since I would also have to re-define the styles for labels, buttons, fields, etc. Also, for some reason, attaching a method to the onRender event of a form seems to change the bgColor for every element on the form EXCEPT the row background, so all my buttons and fields change color, which is not what I want. It seems that most of the examples and posts deal with forms in tableView and the Web Client and I primarily use listView and the Smart Client.
I look forward to your suggestions.
Steve in L.A.