Horizontally Scroll A Large Power Apps Gallery

So you have a lot of data to display but the screen in Power Apps isn’t large enough. My friend Ronald Sease recently showed me how to create a gallery in Power Apps that you can scroll horizontally. It’s a simple but powerful solution utilizing a horizontal container and a vertical gallery.

Demo

Scrollable Gallery

Instructions

First add a Horizontal container to your screen.

Add Horizontal Container to Screen

Set the LayoutOverflowX property on the Horizontal container.
LayoutOverflowX = LayoutOverflow.Scroll

Add a Vertical gallery within the horizonal container you created.

Add Vertial Gallery to Screen

Set the following properties on the Vertical gallery.

  • ShowNavigation = true (this isn’t required but the navigation buttons make it much easier to move up and down the list when the up/down scrollbar is off the screen.)
  • Height = Parent.Height (if you are using the Show Navigation option then set this to Parent.Heigh - 20 so that the navigation buttons are not covered up by the scroll bar.)
  • LayoutMinWidth = 1000 (This value needs to be larger than the width of the horizontal container for the scrollbar to appears. Choose a size will allow you to fit all of you gallery fields in the template.)

Now we have a gallery that we can scroll left to right to see more data.

image

Let’s finish up designing our Gallery.

First let’s make sure the seperator goes all the way across. Change the following property on the seperator.
Width = Parent.LayoutMinWidth

image

Next let’s turn on the gallery loading spinner so our users know when the control is loading more data. You can do this by clicking on the Gallery control and setting the following property.
LoadingSpinner = LoadingSpinner.Data

image

Finally add any additional fields you want to show and update the height of the gallery template to your needs.

IMPORTANT NOTE The Power Apps editor gets somewhat confused as to the placement of items after you have scrolled so in order to move the components around on the gallery template you will need to utilize the X/Y Position values on the controls.

image

Comments

  1. How to add a header which scrolls as per the gallery items

    ReplyDelete
  2. Drugs enter your bloodstream and, as a result, somehow be embedded in your hair, where they remain until the hair is removed from your body. However, proper and regular use of the remedies mentioned above can definitely help you in reducing the drug toxins. Despite their scientific validity, many people are skeptical of the accuracy of hair drug tests. You will be relieved to learn that hair follicle drug tests are the highly effective method that yields accurate results. Hair tests, in general, can detect drugs for a longer period than urine drug tests. Hair drug tests can detect drugs in your system up to ninety days after being taken, whereas urine tests can only discover drugs up to a week after their use. Visit: https://www.urineworld.com/

    ReplyDelete

Post a Comment

Popular posts from this blog

Add User As Local Administrator On Domain Controller

An error occurred while applying security information to