cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BigRos
Regular Visitor

Vertical Gallery with horizontal scroll

Is it possible to change default sort order by column to sort by row?

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @BigRos ,

Do you want to make "1,2,3,4,5,6,7,8,0,10,11,12,13,14,15" looks like this: "1 2 3 4 5 6 7 8

                                                                                                                    9 10 11 12 13 14 15"    ?

 If so, firstly you should not use Horizontal Gallery, because Horizontal Gallery will sort Horizontally, looks like this:

"1 3  5 7 9 11 13  15

2 4 6 8 10 12 14".

You still need to vertical gallery, which sort vertically, looks like this:   "12345".

Please notice that the wrap count of vertical gallery means that the row number in vertical.

So the key point of your issue is to set the wrap count in vertical to one specific number which could make the gallery's row number is 2 in Horizontal.

Try this:

1)insert a vertical gallery

2)set its Items:

[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]

3)set its WrapCount:

RoundUp(CountRows(Gallery2.AllItems)/2,0)

Then the gallery will always have two rows in Horizontal. The row number in vertical is decided by the items number.

6102.PNG

 

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
mdevaney
Super User
Super User

@BigRos 

Can you please show an example?  I am confused about what you want to do.

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

BigRos
Regular Visitor

I have items ordered (Ascending).

I cannot use the Horizontal Gallery (It is a requirement to have a horizontal scroll), but the gallery with wrapcount a 2  show the data of a collect MyData in vertical order. 

Mydata

Nome Rowcount

 xxx      1

zzz       2

etc

 

For example  RowCount contains

1,2,3,4,5,6,7,8,0,10,11,12,13,14,15

 

I obtain 

1 3  5 7 9 11 13  15

2 4 6 8 10 12 14
Can i obtain 

1 2 3 4 5 6 7 8  

9 10 11 12 13 14 15

 

 

Hi @BigRos ,

Do you want to make "1,2,3,4,5,6,7,8,0,10,11,12,13,14,15" looks like this: "1 2 3 4 5 6 7 8

                                                                                                                    9 10 11 12 13 14 15"    ?

 If so, firstly you should not use Horizontal Gallery, because Horizontal Gallery will sort Horizontally, looks like this:

"1 3  5 7 9 11 13  15

2 4 6 8 10 12 14".

You still need to vertical gallery, which sort vertically, looks like this:   "12345".

Please notice that the wrap count of vertical gallery means that the row number in vertical.

So the key point of your issue is to set the wrap count in vertical to one specific number which could make the gallery's row number is 2 in Horizontal.

Try this:

1)insert a vertical gallery

2)set its Items:

[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]

3)set its WrapCount:

RoundUp(CountRows(Gallery2.AllItems)/2,0)

Then the gallery will always have two rows in Horizontal. The row number in vertical is decided by the items number.

6102.PNG

 

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (2,283)