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

Go to Top part of screen

Hello,

 

when I navigate to a screen (say SCR1) for the first time, PowerApps shows the screen at its top position. If I scrolll down, go to another screen, and then come back to SCR1, it shows the screen at the last position used (so down part in that case).

 

Whereas I would like it to always display the screen at the top.

 

Is there any way to achieve this ?

 

Guillaume

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted

@Guillaume

So workaround to this is to add in your screen where the canvas is in OnVisible property

 

UpdateContext({resetCan:false})

 

and in OnHiden property

 

UpdateContext({resetCan:true})

 

Then in your DataCard Visible property set

 

resetCan=false

 

That will reset the datacard and move the canvas at the top when you navigate to the screen

 

View solution in original post

Highlighted

@MarcBailey

Yes. It is almost the same workaround. All you have to do is reset the items in the gallery. Do exactly the same thing with OnVisible and OnHiden property of the screen and and in your gallery Items property add

 

If(resetCan=false, [your original items here])

View solution in original post

25 REPLIES 25
Highlighted
Memorable Member
Memorable Member

Sorry I don’t uderstand your question. Screen is screen and it can’t go up or down. You might have a gallery or scrolable canvas on the screen which you want to be at top position when navigating back. So which one is it?
Highlighted

Hello,

 

it is a scrollable canvas on the screen (with one card only), how do I get to the top ?

 

Thanks

Highlighted

@Sienna : so is there a way to go top part of a canvas ?

Highlighted
Memorable Member
Memorable Member

Not an official way as far as I know. I’m sure there is an unoffical way of doing it but I haven’t tried that with canvas yet. Please post a screenshot of that canvas and I’lltake a look at it tommorow
Highlighted

Ok, here is a screenshot :

 

As you can see on the left, there is one canvas in my screen, with one data card that contains all the elements. Below is the down part of the screen.

 

 

screenshot.jpg

Highlighted

Guillaume,

 

I have seen several post related to the scroll bar not resetting to the top upon arrival to a screen.  To the best of my recollection, there is currently not a solution for this.  There needs to be a property associated with the scroll bar that allows the scroll bar to be reset to top if true.  It becomes confusing to users to navigate to a screen and then try to figure out where they are because the scroll bar is scrolled to the bottom, etc.

Highlighted

@Guillaume

So workaround to this is to add in your screen where the canvas is in OnVisible property

 

UpdateContext({resetCan:false})

 

and in OnHiden property

 

UpdateContext({resetCan:true})

 

Then in your DataCard Visible property set

 

resetCan=false

 

That will reset the datacard and move the canvas at the top when you navigate to the screen

 

View solution in original post

Highlighted

@Sienna

 

Hi Sienna,  Do you know if there is a workaround that will work with a Gallery?

Highlighted

Thanks @Sienna, it worked ! Though it adds a little delay when displaying the screen, but it works 🙂

 

To be precise, I modified the OnHidden & OnVisible properties of the screen, not of the canvas (these properties exist only for screens anyway)

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (5,992)