cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

Blank Gallery - highlight selected item

Hello Team, I have used the blank gallery and have multiples columns to it by grouping the column. Now I want to highlight the selected row. It looks pretty easy in data table control but no in the gallery. Can you please help?

 

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi@vshah2,

Could you please share more about your scenario? Is there a grouped gallery?

Based on the issue that you mentioned, do you want to select a row in a grouped gallery and highlighted it?

If there is a normal gallery without being grouped, you can use the formula @KrishnaV provided. If there does exist a grouped gallery, we have to do something different.

According to my assumptions, there is a nested gallery in your app. Select one row in a nested gallery that can’t be achieved currently. You can add a Checkbox inside to select the corresponding row.

I have a test on my side, please take a try as below.

  • Set the OnCheck property of the Checkbox as below

 

Set(SelectedRow, ThisItem.City)​

 

  • Set the Default property of the Checkbox as below

 

If(SelectedRow = ThisItem.City, true, false)​

 

  • Set the TemplateFill property of the nested gallery as below

 

If(Checkbox2.Value, RGBA( 28, 196, 220, 3), RGBA(0, 0, 0, 0))​

 

0005.gif

Best Regards,

Qi

View solution in original post

3 REPLIES 3
Super User III
Super User III

Hi @vshah2 ,

 

Try this for template fill property of the gallery:

If(ThisItem.IsSelected,RGBA(22, 220, 220, 5), RGBA(242, 242, 242, 5))

 
I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
Krishna
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Proud to be a Super User!

Regards,
KrishnaV
Business Applications MVP
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.
Community Support
Community Support

Hi@vshah2,

Could you please share more about your scenario? Is there a grouped gallery?

Based on the issue that you mentioned, do you want to select a row in a grouped gallery and highlighted it?

If there is a normal gallery without being grouped, you can use the formula @KrishnaV provided. If there does exist a grouped gallery, we have to do something different.

According to my assumptions, there is a nested gallery in your app. Select one row in a nested gallery that can’t be achieved currently. You can add a Checkbox inside to select the corresponding row.

I have a test on my side, please take a try as below.

  • Set the OnCheck property of the Checkbox as below

 

Set(SelectedRow, ThisItem.City)​

 

  • Set the Default property of the Checkbox as below

 

If(SelectedRow = ThisItem.City, true, false)​

 

  • Set the TemplateFill property of the nested gallery as below

 

If(Checkbox2.Value, RGBA( 28, 196, 220, 3), RGBA(0, 0, 0, 0))​

 

0005.gif

Best Regards,

Qi

View solution in original post

Community Support
Community Support

Hi@vshah2,

Have you solved your issue?

If it solves your request, Mark it as a Solution to enable other users to find it.

Best Regards,

Qi

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (52,542)