cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Guillaume
Level: Powered On

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
Sienna
Level 10

Re: Go to Top part of screen

@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

Sienna
Level 10

Re: Go to Top part of screen

@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

22 REPLIES 22
Sienna
Level 10

Re: Go to Top part of screen

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?
Guillaume
Level: Powered On

Re: Go to Top part of screen

Hello,

 

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

 

Thanks

Guillaume
Level: Powered On

Re: Go to Top part of screen

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

Sienna
Level 10

Re: Go to Top part of screen

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
Guillaume
Level: Powered On

Re: Go to Top part of screen

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
MarcBailey
Level 8

Re: Go to Top part of screen

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.

Sienna
Level 10

Re: Go to Top part of screen

@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

MarcBailey
Level 8

Re: Go to Top part of screen

@Sienna

 

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

Guillaume
Level: Powered On

Re: Go to Top part of screen

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 458 members 6,569 guests
Please welcome our newest community members: