cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vshah2
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
v-qiaqi-msft
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

Best Regards,
Qi

View solution in original post

3 REPLIES 3
KrishnaV
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.

Regards,
KrishnaV
Business Applications MVP, Microsoft Certified Trainer
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.
v-qiaqi-msft
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

Best Regards,
Qi

View solution in original post

v-qiaqi-msft
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

Best Regards,
Qi

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

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

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,563)