Asp.Net Treeview with Drag and Drop-Help

General .NET Discussions

Asp.Net Treeview with Drag and Drop-Help


skadoo 03-02-2008, 8:38 PM
Does anyone know how to extend asp:treeview to add Drag and Drop ablities? Everything I have found so far with Drag and Drop  are Window.Form  controls not Web  control or third party controls that need to purchased. The idea is to use native controls, we are currently using Component Art controls and want to convert to Ajax/Asp.Net controls.

Thank you in advance for any assistance.

Scott

Re: Asp.Net Treeview with Drag and Drop-Help


leblanc 03-24-2008, 12:32 AM
go to https://administrator.robusthaven.com
and login as:
username: test
password: test

by the way i'm hosting from home so its a lil slow, also you'll be my first tester : ]

i'll keep the account open for a while

its not drag and drop but it lets you move a node to a different parent.  [use firefox]

a full drag and drop system all 'li' elements in the unordered list tree will need
onmouseover=responsiveui    use stopPropagation(e)
onmousedown=drag  onmouseup=drop
i would use the yui to capture mouse events and use stopPropagation(e) so parent li elements aren't affected when onmouseover


I haven't implemented the full drag and drop yet but you can see what i got so far.
Its strongly coupled to postgresql at the moment [no abstraction yet].  Currently uses Adjacency List, I'm working on nested set for hierarchical data [abstraction in place].

The idea is you drag a view: TreeCheckBox, TreeLinks, TreeSelectBox .....
You attach a provider which is defined in my tree configuration section in web.config and magically renders the tree for you.

About a week of work.

leblanc meneses
http://www.mixhacks.com
Copyright Cedar Rapids INETA, 2005 All rights reserved.

Powered by Community Server, by Telligent Systems