cancel
Showing results for 
Search instead for 
Did you mean: 
maqsoftware

Horizontal Scroll in Vertical Gallery

There may be a requirement of showing more columns (horizontally) like table in a vertical gallery, by default vertical gallery will not offer horizontal scroll to show more details.

 

But there is a workaround to achieve this. Refer below for the steps:

  1. Create a horizontal container and fit it in screen. Example: Width = 500
     Set following properties: (hiding vertical scroll here as vertical gallery displays one)
    maqsoftware_0-1651653452933.png 

  2. Create a vertical gallery inside horizontal container with the width you are looking for. Example: 1000
    Set following properties:
    maqsoftware_1-1651653452935.png 
  3. Use normal container for headers in case vertical gallery to be shown like a table.
    Set following properties:
    maqsoftware_2-1651653452936.png 

Tree View:

maqsoftware_5-1651653618245.png


Output: 

After making above changes, horizontal container shows horizontal scroll which will look like in-built horizontal scroll in vertical gallery.

maqsoftware_6-1651653626775.png

 

Note:

Make sure to have same width for header and gallery elements to properly aligned like a table.

Comments
Anonymous

Very helpful, thanks!

Thanks for sharing. This is really simple way to achieve the need.

Hi

 

i am trying to make a horizontal gallery scroll vertically. i have tried the reverse of your solution but i don't get the output i require. can you help?

@tu22 

Thanks for reaching out us.

You can achieve Vertical Scroll in Horizontal Gallery in exactly the reverse way mentioned in the post. If not working, check the below approach:

  1. Make sure you add Horizontal Gallery inside Vertical Container
    maqsoftware_0-1661758055209.png
  2. Config for Vertical Container
    maqsoftware_1-1661758090468.png
  3. Config for Horizontal Gallery
    maqsoftware_2-1661758138298.png

Here is the output: you can see the scrollbar 

maqsoftware_3-1661758180483.png

 

I've tried this technique with some success. Let me state, I'm very grateful for this tip. I'm trying to replicate a right horizontally scrollable financial report currently in Excel.

 

The problem I've run into is that the gallery can be extended infinitely to the right in theory, but appears to have a hard stop at around 1300 pix.

 

Gallery.png

 

My parent container is screen width, and the gallery (Financials) is 10,000 pix, but as you can see from the alternately colored rows, it doesn't extend the full length.

 

Even odder, I can add controls (e.g. label, icon) to the gallery and move that control past that point, just not the gallery itself. I could use this to recreate the Excel sheet by making each control's (I need about 24) fill transparent, padding the left of each control to get the data lined up exactly rith, and just stacking one control atop another, but... that's crazy.

Any ideas on how to solve this one or why the gallery is the width I want, but visually, the template width hits a limit (tied to the page?)?

 

Thanks in advance for your brain powers trying to help!