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

Docking and Reordering

2 Answers 22 Views
TileView
This is a migrated thread and some comments may be shown as answers.
christina noel
Top achievements
Rank 1
christina noel asked on 20 Dec 2011, 07:51 PM
I am creating a tileview with items that represent the pages of a document. As such, I need the items to remain in a fixed order. However, I would like to allow the user to pick which side of the page the minimized items appear on.

Is it possible to keep my items in a fixed order while still allowing drag-to-dock?

--Christina

2 Answers, 1 is accepted

Sort by
0
Accepted
Tina Stancheva
Telerik team
answered on 23 Dec 2011, 04:09 PM
Hello Christina,

The RadTileViewItem have a Position property that you can use to keep the position of the items intact. The RadTileView control also exposes a PreviewTilePositionChanged event which you can handle to prevent a tile from changing its position. And also you can set the PreservePositionWhenMaximized property to True.

I hope those properties and events can help you implement your scenario. However, since I am not sure if I understand it correctly, please let me know if I am missing something or if you need more info.

Regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
christina noel
Top achievements
Rank 1
answered on 23 Dec 2011, 04:36 PM
Thank you!

I use the following settings, now:
1) IsItemDraggingEnabled=true;
2) IsDockingEnabled=true;
3) PreservePositionWhenMaximized=true;
4) PreviewTilePositionChanged, with nothing in the handler except e.Handled=true;

This precisely satisfies my requirement that users be able to drag items to an edge in order to pick the docking layout without allowing users to rearrange the tiles.

--Christina
Tags
TileView
Asked by
christina noel
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
christina noel
Top achievements
Rank 1
Share this question
or