Docking and Reordering

3 posts, 1 answers
  1. christina noel
    christina noel avatar
    42 posts
    Member since:
    Mar 2010

    Posted 20 Dec 2011 Link to this post

    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. Answer
    Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 23 Dec 2011 Link to this post

    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 >>

  3. DevCraft banner
  4. christina noel
    christina noel avatar
    42 posts
    Member since:
    Mar 2010

    Posted 23 Dec 2011 Link to this post

    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
Back to Top