web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

undefined

(0) ShareShare
ReportReport
Posted on by 150

I am using a horizontal gallery and in this gallery I have added rectangle and in rectangle on visible I have set the code as If(ThisItem.IsSelected,true,false) but when I selecting the item in gallery it is not  visible the rectangle which I have selected but previous rectangle of the selected item of gallery.

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Moira0509 

    You don't need an If() function for a visible property. ThisItem.IsSelected is sufficient as it reduces to either true or false. 

  • Moira0509 Profile Picture
    150 on at

    yeah I got your point.

    But my issue is that when I selecting current it is selecting  previous one.

    Moira0509_0-1673633366245.png

    I am selecting Fri 8:30 it will visible Fri 7:30 don't know why.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Moira0509 

    Make sure that there is no overlap of the controls in the gallery.  You could try to troubleshoot this by using a vertical gallery and see if the same thing happens.

  • Moira0509 Profile Picture
    150 on at

    Thanks yeah there is overlapping .Do you have any solution how can I correct this. 

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Moira0509

    Instead of a rectangle, use a button and size it so it fits inside the first cell of the gallery. 

  • Moira0509 Profile Picture
    150 on at

    thanks for the help.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard