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

Is there a reorder event?

2 Answers 15 Views
TileList
This is a migrated thread and some comments may be shown as answers.
edjia
Top achievements
Rank 1
edjia asked on 25 Mar 2019, 02:07 PM
I want to save each tile position in each group after user reorder the tilelist, but i can't find any event about reorder. How should I accomplish this?

2 Answers, 1 is accepted

Sort by
0
Accepted
Dinko
Telerik team
answered on 28 Mar 2019, 11:37 AM
Hello edjia,

You can achieve the desired behavior using Telerik's DragDropManager and handling the DragInitialize and DragDropCompleted events.

public MainWindow()
{
    InitializeComponent();
    DragDropManager.AddDragInitializeHandler(this.RadTileList1,OnDragInitialize);
    DragDropManager.AddDragDropCompletedHandler(this.RadTileList1,OnDragDropCompleted);
}
 
private void OnDragDropCompleted(object sender, DragDropCompletedEventArgs e)
{
    var tile = e.OriginalSource as Tile;
    var dropToGroup = tile.Group.Header.ToString();
}
 
private void OnDragInitialize(object sender, DragInitializeEventArgs e)
{
    var tile = e.OriginalSource as Tile;
    var draggedFromGroup = tile.Group.Header.ToString();
}


Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
edjia
Top achievements
Rank 1
answered on 29 Mar 2019, 06:38 AM

thanks very much,  it's my fault, i can't found a similar post before.

https://www.telerik.com/forums/tilegroup-detection

Tags
TileList
Asked by
edjia
Top achievements
Rank 1
Answers by
Dinko
Telerik team
edjia
Top achievements
Rank 1
Share this question
or