Drag and drop inside treeviewlist item with dragdropmanager

2 posts, 1 answers
  1. metealika
    metealika avatar
    3 posts
    Member since:
    Jan 2014

    Posted 04 Feb 2014 Link to this post

    I have been working on a project with TreelistView and DragDropManager.
    I have a treelistview and i want to drag and drop the items in it.
    For example, my treelistview items are like that.

    - Sub 1_1
    - Sub 1_2
    - Sub 2_1
    - Sub 2_2
    - Sub 2_3

    and i want to drag (Sub 2_2) from (Main_2) to (Main_1). But i can't find the drop position of dragging item, and how can i use this drop position to find the item which dragging item is dropped on.

    One more question:
    var item = (args.OriginalSource as FrameworkElement).ParentOfType<???????>() -->> What is the correct type for treelistview.

    a basic example could help me.
    with kind regards

  2. Answer
    Nick avatar
    593 posts

    Posted 06 Feb 2014 Link to this post

    Hello Mete,

    You can check this example to see how you can retrieve the drop position from the TreeListViewRow directly. 

    Hope it helps! 


    Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

Back to Top