You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@click.apache.org by Tim Hooper <th...@gmail.com> on 2009/05/29 21:11:16 UTC

Drag and Drop Tree

I want to create a tree using Click that allows drag and drop re-ordering. The 
re-ordered data could then be sent to the server and saved.  Something like 
this http://www.dhtmlgoodies.com/scripts/drag-drop-folder-tree/drag-drop-folder-
tree.html

I see that click already has a sortable check list included in the examples.  
Any pointers on how to start would be appriciated!

Tim


Re: Drag and Drop Tree

Posted by Bob Schellink <sa...@gmail.com>.
Hi Tim,

I assume you want the Tree model on the server to be updated when you 
reorder the Tree in the browser. The only way I think this will work 
is if you use Ajax to inform the server of each change. On the server 
you'll need to parse the incoming parameters to reorder the Tree model.

I would look at Javascript libraries to perform the front-end 
rendering of the Tree. For example JQuery, Prototype, YUI etc have 
their own Tree widgets which support this sort of thing.

kind regards

bob


Tim Hooper wrote:
> I want to create a tree using Click that allows drag and drop re-ordering. The 
> re-ordered data could then be sent to the server and saved.  Something like 
> this http://www.dhtmlgoodies.com/scripts/drag-drop-folder-tree/drag-drop-folder-
> tree.html
> 
> I see that click already has a sortable check list included in the examples.  
> Any pointers on how to start would be appriciated!
> 
> Tim
> 
>