Layout with vertical scrollbar instead of horizontal

2 posts, 1 answers
  1. Dave
    Dave avatar
    31 posts
    Member since:
    Apr 2014

    Posted 15 Apr 2014 Link to this post

    Hi. I'm fairly new to this. I am trying to set up a RadTileView with a variable number of items. I have bound the ItemsSource to my ViewModel, set up the ContentTemplate as a grid, and can display each item fine. The only problem is that when there are too many items to fit on one row in the window they still lay themselves out as a single row and a horizontal scrollbar appears. What I want is for the items to wrap onto multiple rows with a vertical scrollbar if necessary. I'm sure this must be totally obvious but I can't seem to find the right setting to make it do this.
  2. Answer
    Martin
    Admin
    Martin avatar
    1101 posts

    Posted 18 Apr 2014 Link to this post

    Hi Dave,

    From your explanation it seems that you've set the RowsCount property of the RadTileVIew to 1 and that's why you see the horizontal scroll bar. If you set the RowsCount to 0 (or remove the setter) the RadTileView will automatically place the items on a new row. You can also see the Rows and Columns help article which explains how to change the arrangement of the TileViewItems.

    Please if you have any further questions don't hesitate to ask them.

    Regards,
    Martin
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top