This is a piece of the application we use to build the Ext dependency tree.
Key features it demonstrates:
* Restrictive drag and drop of nodes from tree to tree
* Restrictive reordering of nodes
* Loading and saving to/from different structures
* Dynamic tree context menu
* Inline editing of tree nodes
* Custom tree styles with CSS
The js is not minified so it is readable. See dependency.js.