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

Drag Drop external item onto RadTreeView

4 Answers 124 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Abhilash
Top achievements
Rank 1
Abhilash asked on 05 Apr 2011, 08:36 AM
Hi,
[To whomsoever it may concern]
I am using RadTreeListView in my application and need to support drag-drop of external file from filesystem onto any node of tree view.
Once i drop file onto Node, i need to find the node and update its children by reading file contents. 

Could you help me achieving the following:
1. Need to find event on external item drop which will help me identify target node. Currently I am able to get the file contents on drop event of tree view but not able to figure out target node.
2. Allowing file drag onto parents nodes and not on any of the child nodes, since child nodes are generated based on contents of file.

Thanks in advance!

Regards,
Abhilash

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 06 Apr 2011, 07:38 AM
Hi,

 Have you seen this demo?

All the best,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Abhilash
Top achievements
Rank 1
answered on 11 Apr 2011, 09:30 AM
Hi Vlad,
Thanks for your resonse.
I have seen this demo, however this does not allow you to drag drop items from file system. I need to drag specific file from file systetm onto specific node of RadTreeView. For details, please read through first post in same thread.

Regards,
Abhilash
0
Tsvyatko
Telerik team
answered on 12 Apr 2011, 10:12 AM
Hello Abhilash,

 You might want to look at this help article, demonstrating how to enable dragging from external program. Then you can integrate it in the TreeListView using the code from the sample posted earlier in the thread.

Greetings,
Tsvyatko
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Abhilash
Top achievements
Rank 1
answered on 13 Apr 2011, 06:52 AM
Hi Tsvyatko,
The link that you provded explains handling drag drop of external file on WPF. My application is Silverlight app.

Also I have read through:
http://www.telerik.com/help/silverlight/raddraganddrop-getting-started-with-drag-and-drop.html
http://www.telerik.com/help/silverlight/raddraganddrop-getting-started-scenarios.html

But there is no link which explains scenario of external file drag drop on RadTreeListView.
Also I have tried regsitering events DropQueryEventand DropInfoEvent like:

 

radTreeListView.AddHandler(RadDragAndDropManager.DropQueryEvent, new
EventHandler<DragDropQueryEventArgs>(OnDropQuery), 
true);<BR>            
radTreeListView.AddHandler(RadDragAndDropManager.DropInfoEvent, new 
EventHandler<DragDropEventArgs>(OnDropInfo), true); 

 

 

However these events were not raised when drag and droped any item from file system.
It would be really nice if you can redirect me to relevant link or send sample POC across.

Regards,
Abhilash

 

Tags
TreeView
Asked by
Abhilash
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Abhilash
Top achievements
Rank 1
Tsvyatko
Telerik team
Share this question
or