cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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
Memorable Member
Memorable Member

@Anonymous

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

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

26 REPLIES 26
Sienna
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?
Anonymous
Not applicable

Hello,

 

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

 

Thanks

Anonymous
Not applicable

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

Sienna
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
Anonymous
Not applicable

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

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
Memorable Member
Memorable Member

@Anonymous

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

 

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

Anonymous
Not applicable

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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,848)