cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Flickering Selected item in Gallery control

Hello Team,

 

 

I have a gallery control for left side navigation component, when i select first item it's showing color. but where as i am selecting second item, for the first time it is highlighting first item as selected, when i do it again then it's highlighting second one. I am using checking condition in template fill property and switching colors based on item selection.

Home Screen:

Bhag1reddy_0-1594191457696.png

Quality:

Bhag1reddy_1-1594191506020.png

Gallery Template Fill :

Bhag1reddy_2-1594191552070.png

 

 

 

 

6 REPLIES 6
Highlighted
Super User III
Super User III

Re: Flickering Selected item in Gallery control

Hi @Bhag1reddy ,

ThisItem.Color is probably doing it - not sure that that means as ThisItem refers to a field, not a control or value,.

If you want green for selection and White otherwise, the TemplateFill should simply be

If(
   ThisItem.IsSelected,
   Green,
   White
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

Highlighted
Frequent Visitor

Re: Flickering Selected item in Gallery control

Thanks in advance !!..

 

changing color based on item in the navigation. 

 

ex: 

ClearCollect(colNav,Table({Title:"Home",Screen:Home,Color:Green},{Title:"Quality",Screen:CreateScreen,Color:GreenYellow},{Title:"Environment",Screen:test,Color:Yellow});

 

from above collection when user selects item showing respective the item color in gallery.

 

 

Highlighted
Super User III
Super User III

Re: Flickering Selected item in Gallery control

@Bhag1reddy ,

Apart from missing a closing bracket, how are you intending using this collection?

ClearCollect(
   colNav,
   Table(
      {
         Title:"Home",
         Screen:Home,
         Color:Green
      },
      {
         Title:"Quality",
         Screen:CreateScreen,
         Color:GreenYellow
      },
      {
        Title:"Environment",
        Screen:test,
        Color:Yellow
      }
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Highlighted
Frequent Visitor

Re: Flickering Selected item in Gallery control

Hello,

 

Declared collection in App start. Created Left side navigation component to use it in the screens. in Gallery showing icon, label &  rectangle to show items. While selection of item display respective color from the collection.

Highlighted
Super User III
Super User III

Re: Flickering Selected item in Gallery control

OK thanks @Bhag1reddy - I do not work with Components

Highlighted
Frequent Visitor

Re: Flickering Selected item in Gallery control

Can anyone have an idea on components ?

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (9,671)