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
RezaDorrani
Dual Super User II
Dual Super User II

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 II
Dual Super User II

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.

RezaDorrani
Dual Super User II
Dual Super User II

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.

RezaDorrani
Dual Super User II
Dual Super User II

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (4,638)