cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
akharns
Post Patron
Post Patron

Fill color on selected row in Gallery

I know several have answered this question, but it has not solved my issue.  Maybe it's due to their being old comments.

 

When I select a row in a gallery, I expect to find a separate setting such as "selected color" that would cause that row to display differently.  All I see to the right in the settings is "color", which applies to all rows.  Some historical discussions have discussed using "Fill" and "Template Fill" properties.  From my experimentation, they do the same thing, with neither actually making the fill color of the selected row different.  I tried using IF logic in the Fill property for the gallery or the top row of the gallery (they appear to use the same value), but it does not see "ThisItem".

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @akharns 

 

Fill property will not recognize ThisItem

 

But TemplateFill property of the Gallery will

Please check again

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

6 REPLIES 6
RezaDorrani
Dual Super User
Dual Super User

Hi @akharns 

 

use templatefill proprty

 

example below

If(ThisItem.IsSelected,Red,Blue)

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

I must not be in the same place as you're thinking.  As stated above, If I add a formula to the gallery's Fill or Templatefill property, "this item" is not recognized.

Hi @akharns 

 

Fill property will not recognize ThisItem

 

But TemplateFill property of the Gallery will

Please check again

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Ok, Templatefill does see ThisItem, but it doesn't work.

Under the TemplateFill property on the gallery, I entered "If (ThisItem.IsSelected,(RGBA(215,213,240,1),RGBA(215, 223, 240, 1))".   There is not color change when I click on a row.  The item selection does work because the data does change in the related form I'm using for detail.

Hi @akharns 

 

Try

If (ThisItem.IsSelected,RGBA(215,213,240,1),RGBA(215, 223, 240, 1))

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

Perfect.  It was a paren problem then.  Thanks.

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (2,626)