Reordering Behaviour

2 posts, 0 answers
  1. Oli
    Oli avatar
    3 posts
    Member since:
    Jul 2012

    Posted 05 Jan 2012 Link to this post

    Hi (again!),

    Does anyone know if it's possible to change the reordering 'swap' behaviour when dragging tiles around?

    Currently when you drag tiles the following occurs:

    Tile Position Before Drag:
    • 1
    • 2
    • 3
    • 4
    • 5 >> DRAG

    Tile Position After Drag
    • 1
    • 5 << DROP
    • 3
    • 4
    • 2

    ... the 5th and 2nd tile swap places. Is there any way to change this so that instead the 5th tile is INSERTED, and ALL the tiles below the insertion point are moved down? The result would look like this:

    Preferred Tile Position After Drop:
    • 1
    • 5 << DROP
    • 2
    • 3
    • 4

    Currently my tiles are all arranged in a single column, and IF the user drags the tile they wish to move OVER the tiles then the desired behaviour is obtained - but that's a big 'IF'. I can't rely on this as I also need the same behaviour on a tileview that has multiple columns.

    Any ideas folks?


  2. Zarko
    Zarko avatar
    755 posts

    Posted 10 Jan 2012 Link to this post

    Unfortunately at the moment this scenario is not supported out of the box. There's a feature request for it and you can track it and vote for it here.
    For now I've attached a project with a possible workaround but with it the animations are a little bit strange and that's why I've turned them off.
    If you have more questions please feel free to ask.

    All the best,
    the Telerik team

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

Back to Top