Skip to main content
1-Visitor
January 16, 2021
Solved

color for alternate cell in Collection widget (TWX 9.1.0) not working

  • January 16, 2021
  • 1 reply
  • 2366 views

Hi,

I am unable to set Styling for alternate cell in Collection widget. please see below snap for reference..when i view mashup cell is not affecting as i styled below.

VS_9760165_0-1610892008806.png

 

Thanks

Best answer by VS_9760165

Hi @c_lowy ,

 

I have made it by applying background color for child mashup and same is reflecting to cells in collection. in child mashup only I have added border and color for mashup and same is reflecting in collection. for now its fine .

 

Thanks

1 reply

16-Pearl
January 18, 2021

Hello,

 

Indeed the CellStyle and CellAlternateStyle will not be visible at runtime if any of the following points is true:


1. The child mashup (= mashup displayed in Collection widget's cells) has a main container size that is greater than or equal to the values of mashupHeight and mashupWidth properties on the Collection widget, or
2. The child mashup has a background color on its main container that is not transparent.

 

This issue has been reported to our R&D department.

 

For now in order for the CellAlternateStyle background color to be visible at runtime, you will need to take at least one of the following actions:

A. Clear background color of child mashup's main container to make it transparent

B. Make child mashup's main container smaller than Collection widget's mashupHeight and mashupWidth properties

1-Visitor
January 18, 2021

Hi @c_lowy 

Thanks for reply, but Still not getting cell alternate color at runtime. i did as you mentioned above. 

nothing is reflecting....any suggestion?

 

Thanks

 

 

16-Pearl
January 18, 2021

Maybe the Background color of your child Mashup (not main container, but Mashup itself) needs to be set to transparent as well ?

 

 

Please find attached a set of example entities. When viewing mashup cwht_collection_mashup you should be able to see the alternate row having a yellow background.