Home - Forums-.NET - FlyTreeView (ASP.NET) - Drag Drop from Windows Explorer

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

Drag Drop from Windows Explorer
Link Posted: 18-Apr-2007 11:20
I'm testing the treeview control and trying to implement something like an ftp application. My program would accept a list of files dragged from Windows Explorer to the treeview and the program will post back the files information and start the ftp process.

I can write some java scripts to deal with the ondrop event but I don't know how to communicate back to the treeview control on the client side. Also I have problems trying to drag a node from the treeview and drop it to Windows Explorer. Could you give me some insight on how to implement it? Thanks

I forgot to mention that I'm using version 1.1 of the control. I plan to upgrade to ASP.NET 2.0 and the version 2.0 of the treeview control in the future but I still like to finish the current project in ver 1.1.
Link Posted: 18-Apr-2007 12:55
Web applications operate in an isolated environment of a browser. I even cannot imagin how  to implement drag-and-drop between Windows Explorer and HTML app.

Windows native D&D objects are not compatible with javascript-emulated D&D operations in a browser.
Link Posted: 19-Apr-2007 05:30
How about if I write an ActiveX control that read the local drive diretories and create an XML source. It's there a way that I can pass the XML source back to the FlyTreeView?

I've done the ActiveX control already but I have no idea how I could communicate with the treeview control.
Link Posted: 19-Apr-2007 07:20
I do not think this is possible for 1.1 version since it does not allow D&D between custom objects and treeview.

FlyTreeView for ASP.NET 2.0 instead allows custom D&D operations.
Link Posted: 09-May-2007 16:56
I tried the ActiveX control solution on a recent project and it didn't work.
Link Posted: 10-May-2007 07:18
The original discussion was not about using ActiveX treeview control in a page, but rather about using ActiveX component to retrieve filesystem directories.

In this case it's easy to populate treeview at client-side.