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

radTreeview for moving files between directories

1 Answer 46 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Chris Yoker
Top achievements
Rank 1
Chris Yoker asked on 28 Aug 2008, 10:50 PM
hiya,

I need to be able to move files between directories, and I was thinking that the following demo was a step in the right direction:

http://demos.telerik.com/ASPNET/Prometheus/TreeView/Examples/Functionality/DragAndDropNodes/DefaultCS.aspx

I need to be able to  drag and drop  a directory from the right  treeview  (which will represent  the file  system directory) 

When the treeNode is dropped onto the rightHand treeview, the files should be copied from the left hand side treeview node (representing  the directory) to the directory in the right hand side.

I have 2 questions:
1) how do I get the treeview to represent the fileSytem directory of the computer?
2) how do I  assign the "location" of the directory to the treNode, ie, if the directory of the treeNode is "C:\\MyFiles\myDir"  then how do I assign this to the node?

Many thanks, I'm under a bit of a deadline for this one!

yogi

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 29 Aug 2008, 10:31 AM
Hello yogi,

Up to your questions:

  1. You can review this online example which demonstrates how to populate RadTreeView from directory
  2. You can use the Value property of the RadTreeNode object to associate any data with it (such as path)
I hope this helps,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
Chris Yoker
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or