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

Reordering Behaviour

1 Answer 51 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Oli
Top achievements
Rank 1
Oli asked on 05 Jan 2012, 07:21 PM
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?

Thanks!

Oli.

1 Answer, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 10 Jan 2012, 05:30 PM
Hello,
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,
Zarko
the Telerik team

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

Tags
TileView
Asked by
Oli
Top achievements
Rank 1
Answers by
Zarko
Telerik team
Share this question
or