TileView with Grid support

2 posts, 0 answers
  1. Matt
    Matt avatar
    8 posts
    Member since:
    Jan 2013

    Posted 05 Dec 2014 Link to this post

    Hi all,
    I would like to use the RadTileView to present a collection of TileViewItems in a grid layout.
    Rather than specifying the widths and heights of the items, I'd like to be able to assign them to a row and column as is done with the standard Grid control.
    I know this can be accomplished by replacing the RadTileView.ItemsPanel template however doing so completely breaks all of the drag and drop functionality.
    I would create a sub-class of the RadTileView control however all of the drag and drop functionality is private.
    Any suggestions on how to do this while preserving the drag and drop functionality would be greatly appreciated.

  2. Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1165 posts

    Posted 09 Dec 2014 Link to this post

    Hello Matt,

    You can control the arrangement of the RadTileViewItems using the RadTileView.ColumnsCount property. Setting it will force the RadTileView to create rows depending on the number of the RadTileViewItems. Furthermore, you will be able to control where and how the items are ordered using their Position property.

    This approach is demonstrated in the attached project. Please take a look at it and let me know if you need any further assistance.

    Pavel R. Pavlov

    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. DevCraft R3 2016 release webinar banner
Back to Top