This is a migrated thread and some comments may be shown as answers.

TileView with Grid support

1 Answer 82 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 05 Dec 2014, 03:49 PM
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.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 09 Dec 2014, 02:40 PM
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.

Regards,
Pavel R. Pavlov
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.

 
Tags
TileView
Asked by
Matt
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or