cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nbarsley1
Advocate II
Advocate II

Select the first gallery item when navigating

Hi we have a tablet app with a gallery on the left hand side of the screen and a form on the right hand side. When first navigating to the screen we would like to auto select the first item in the gallery. When navigating away and then navigating back we would like to select the item in the gallery that was previously viewed. Is this possible? 

1 ACCEPTED SOLUTION

Accepted Solutions
aprildunnam
Power Participant
Power Participant

I believe by default OnStart the first item in the gallery will be selected.  I just tested it out in one of my apps and that seems to be the case.  It also looks like if you navigate away it should keep the last selected value.  I tested that in my app and that was the case also.  I have a gallery and edit form on the same page.  The edit form "Item" propertly is set to the selected item in my gallery.

View solution in original post

3 REPLIES 3
aprildunnam
Power Participant
Power Participant

I believe by default OnStart the first item in the gallery will be selected.  I just tested it out in one of my apps and that seems to be the case.  It also looks like if you navigate away it should keep the last selected value.  I tested that in my app and that was the case also.  I have a gallery and edit form on the same page.  The edit form "Item" propertly is set to the selected item in my gallery.

View solution in original post

Hi @aprildunnam 

Can you please explained it to me more detail?

I need to auto selected the Gallery item when navigate away from a screen.

This is i have on the Gallery Item Property: 
[{ID:"MenuTab1", DisplayName:"Header"}, {ID:"MenuTab2", DisplayName:"Details"}]

What should i put on the Gallery Default property then?

Please Help,

 

Thanks.

pytbyt

I do not understand. Can you explain more

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,989)