PDA

View Full Version : Tree drag and drop ordering



miran
13 Feb 2014, 7:56 AM
Hi to all. I want to make a tree ordering, but only in one level and disable appending.

scottmartin
13 Feb 2014, 9:43 AM
Does this example help?
http://docs.sencha.com/extjs/4.2.1/extjs-build/examples/build/KitchenSink/ext-theme-neptune/#tree-reorder

miran
13 Feb 2014, 9:58 AM
This example allow to place folder into folder, but i need to prevent this action.

miran
14 Feb 2014, 2:47 AM
Maybe this will help to anyone:

beforeitemmove: function(item, oldParent, newParent, index, eOpts) {
if (oldParent.data.id != newParent.data.id) return false;
}