hi,
i fear that accomplish such task could be a little bit tricky.
First of all note that the setRowAttribute method does not affect the entire template but affects all lightstreamer's cells inside the template. Btw note that the onChangingValues gives to you a reference to the entire container (ie: the template clone) so that you can do any kind of manipulation on it.
Our library does not give to you the position of a row in the table nor a callback to signal that a row has changed position, so to reach your goal you have to go through a more complicated way.
In example you could store the dom references given by the onChangingValues and change the rows colors on the basis of the data you receive, or you could try even and odd rules as shown here (note that I'm not sure this would work as I have no time to test it at the moment, btw if you can give it a try please let us know your results)

HTH