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

Drag and drop inside treeviewlist item with dragdropmanager

1 Answer 75 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
metealika
Top achievements
Rank 1
metealika asked on 04 Feb 2014, 02:41 PM
Hi,
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.

Main_1
- Sub 1_1
- Sub 1_2
Main_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








1 Answer, 1 is accepted

Sort by
0
Accepted
Nick
Telerik team
answered on 06 Feb 2014, 11:25 AM
Hello Mete,

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

Hope it helps! 

Regards,
Nik
Telerik

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).

Tags
TreeListView
Asked by
metealika
Top achievements
Rank 1
Answers by
Nick
Telerik team
Share this question
or