Is there a reorder event?

3 posts, 1 answers
  1. edjia
    edjia avatar
    6 posts
    Member since:
    Feb 2008

    Posted 25 Mar Link to this post

    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. Answer
    Dinko
    Admin
    Dinko avatar
    874 posts

    Posted 28 Mar Link to this post

    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.
  3. edjia
    edjia avatar
    6 posts
    Member since:
    Feb 2008

    Posted 29 Mar in reply to Dinko Link to this post

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

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

Back to Top