cancel
Showing results for 
Search instead for 
Did you mean: 

sap.ui table change color of specific rows

0 Kudos

Consider a table with 50 records. visibleRowCount is set to 15, so when table is loaded with data there are only 15 records displayed. I need to change color of some specific rows based on values (lets say when a cell has value "Total"). Assume, "Total" appears in rows 2,4 8. I can change the color of these rows. getRows() works well before I start scrolling a table down,The problem is that getRows() method returns only # of visible rows in the table. Therefore, when I scroll table down the rows 2, 4 ,8 are colored permanently. In this case the logic that it should depend on value "Total" doesn't work. Is thre any chance I can fix this issue? Thanks!

View Entire Topic
santhu_gowdaz
Active Contributor
0 Kudos

=== not ==

class="{= ${modelo>propiedad}==='si'?'colorClass':''}

0 Kudos

Thanks santhu.gowdaz

With === doesn't work either. The background of Text control doesn't color. Do you tried this?

Regards