Categories > TinyButStrong general >

table row color iteration below headergroup gets messy

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: klepy
Date: 2007-12-12
Time: 20:34

table row color iteration below headergroup gets messy

Hi,
i am trying agein to improve some pages i already am using with this great library.
At the moment i managed to do some sort of grouping, using a table, similar as in http://www.tinybutstrong.com/apps/examples/tbs_us_examples_grouping.php

ok, works fine.
However in the detail rows i had been using alternate colors,
<tr>
     <td>[blk1.name]</td>
     <td>[blk1.phone]</td>
</tr>
<tr class="trlista">
     <td>[blk1.name]</td>
     <td>[blk1.phone]</td>
</tr>

this keeps working, but gets messy after some headers have passed.
Is there a way to "reset" the rowcount below a each header row, so coloring of the detail rows always start with the same color ??

thanks,

Klemens
By: Skrol29
Date: 2007-12-12
Time: 23:18

Re: table row color iteration below headergroup gets messy

Hello, there is no native feature to do this directly.
However, you can us parameter "ondat" to define a customized calculated data field. Then you can use this data field for conditional sections in your template.