Deadmeat
20 Jul 2009, 9:02 PM
This is a replacement tree component that supports multi-select and drag&drop at the same time. You can shift or ctrl select multiple nodes and drag identically to the normal tree. You can use further extensions to allow grids.
See the live demos at: http://www.users.on.net/~clear/ext/
This is the same as the extension for version 2.x at http://extjs.com/forum/showthread.php?t=60759
It seems to work as is with ExtJS 3.x with only two differences:
allowContainerDrop works correctly out of the box.
You no longer require the additional override code to fix insertion order.
If you find any bugs with ExtJS 3.x please post here.
This was originally posted as an example here (http://extjs.com/forum/showthread.php?t=28115)
There is a tree insertion order bug in 3.1.1 (http://www.extjs.com/forum/showthread.php?t=91506) reported below by tritonBear. There is an override in the bug thread.
UPDATE: I've put together a beta version based on code I wrote some time ago. You can get it here (http://www.users.on.net/~clear/ext/index-beta.html). The is beta, but bug reports are welcome.
It fixes an issue a user had with the way selection works. The 1.1 release if you select multiple nodes and then later single click one of those nodes it doesn't do anything. The desired/intuitive behaviour was to deselect the other nodes. I implemented this with some messing around. I'm not entirely happy with how complicated it is. The end result is nicer though.
There is also a workaround for a bug in the core. If you click and hold a node for longer than the startdrag threshold then it calls proxy.repair() which causes some flickering.
See the live demos at: http://www.users.on.net/~clear/ext/
This is the same as the extension for version 2.x at http://extjs.com/forum/showthread.php?t=60759
It seems to work as is with ExtJS 3.x with only two differences:
allowContainerDrop works correctly out of the box.
You no longer require the additional override code to fix insertion order.
If you find any bugs with ExtJS 3.x please post here.
This was originally posted as an example here (http://extjs.com/forum/showthread.php?t=28115)
There is a tree insertion order bug in 3.1.1 (http://www.extjs.com/forum/showthread.php?t=91506) reported below by tritonBear. There is an override in the bug thread.
UPDATE: I've put together a beta version based on code I wrote some time ago. You can get it here (http://www.users.on.net/~clear/ext/index-beta.html). The is beta, but bug reports are welcome.
It fixes an issue a user had with the way selection works. The 1.1 release if you select multiple nodes and then later single click one of those nodes it doesn't do anything. The desired/intuitive behaviour was to deselect the other nodes. I implemented this with some messing around. I'm not entirely happy with how complicated it is. The end result is nicer though.
There is also a workaround for a bug in the core. If you click and hold a node for longer than the startdrag threshold then it calls proxy.repair() which causes some flickering.