0

How can you stop ListView from adding items vertically and make them display in a horizontal grid instead.

for example

1,2,3,4

5,6,7,8

instead of

1,3,5,7

2,4,6,8

Googling suggests the below but it doesn't make any difference.

this.listView.winControl.layout = new WinJS.UI.GridLayout();
this.listView.winControl.layout.orientation = "horizontal";
2
  • It should work, where did you put this codes? Could you give more codes? Jun 17, 2016 at 2:48
  • oddly setting the orientation to "vertical" did the job! :) Jun 22, 2016 at 10:15

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.